The click-to-call API lets you initiate phone calls from your application. Astradial calls the “from” party first, and when they answer, connects them to the “to” party.Documentation Index
Fetch the complete documentation index at: https://docs.astradial.com/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Authentication
Requires an API key withcalls.click_to_call permission.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
from | string | Yes | Extension number or phone number to call first |
to | string | Yes | Destination to connect after “from” answers |
to_type | string | No | Type of destination: extension, queue, ivr, ai_agent, or external |
caller_id | string | No | Phone number shown as caller ID to the “to” party |
timeout | number | No | Seconds to wait for “from” to answer (default: 30) |
variables | object | No | Custom variables passed to the call |
Example: agent calls a customer
Example: connect two extensions
How it works
- Astradial calls the
fromnumber/extension - When they answer, Astradial calls the
tonumber/extension - When both answer, they are connected in a call
- Either party can hang up to end the call

