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

