Dispatch an outbound call from an agent
Dispatch an outbound AI phone call. The call is placed immediately and
runs under the configuration of the referenced outbound agent
(persona, instructions, voice, language, returns, tools, voicemail
action). Per-call instructions replace the agent’s default for this
call. Per-call from_number must be another number attached to the
same agent.
Authorizations
API key starting with sk_
Body
Request body for POST /v1/calls. Agent-centric: persona, voice,
language, returns, tools, voicemail behavior, and the default
webhook all come from the referenced outbound agent. Only a small
set of fields can be overridden per call.
Id of the outbound agent to run for this call. The agent's
type must be outbound.
"b5a1c9f2-6d2d-4a7f-9f3a-5a2b1c3d4e5f"
Phone number to call in E.164 format.
"+15551234567"
Caller ID override. Must be another number attached to this
agent. If omitted, the agent's primary_number_id is used.
"+15557654321"
Per-call instructions. When present, wholly replaces the
agent's default instructions for this call (replace
semantics, not merge).
"Confirm the patient's appointment tomorrow at 2pm."
Arbitrary JSON context available to the agent during the call.
{
"patient": "Maria Lopez",
"doctor": "Dr. Chen"
}Per-call webhook override. If omitted, the agent's
webhook_url is used. For account-wide fan-out across
multiple calls, register endpoints via
POST /v1/webhook_endpoints instead.
"https://your-server.com/callingbox-webhook"
Arbitrary key/value metadata you can read back off the call record.
Response
Call created successfully
Unique call identifier.
The agent that handled the call. Null for legacy calls created before agents existed.
Destination phone number.
Caller ID phone number.
queued, initiated, ringing, in_progress, completed, no_answer, busy, canceled, failed outbound for calls dispatched via POST /v1/calls; inbound for calls answered by an inbound agent.
inbound, outbound "outbound"
Snapshot of the agent's persona at the time this call ran.
Snapshot of the instructions used for this call (per-call override on outbound, otherwise the agent's default).
Rendered system prompt for this call, derived from the
agent's persona plus instructions. Treat this as
read-only call history, not a request field.
Context provided for this call.
Snapshot of the agent's returns schema used for this call.
Structured data extracted from the call, matching the returns schema
Extraction status: pending, completed, or failed
"completed"
Error message if extraction failed
Language code
Webhook endpoint URL
Webhook delivery status: pending, delivered, or failed
"delivered"
Error message if webhook delivery failed
When the call was created
When the call started ringing
When the callee answered
When the call ended
Total call duration in seconds
Billable connected time in seconds
Amount billed in milli-cents
Credit reservation status: reserved, settled, or released
"settled"
Error code from the telephony provider
Human-readable error description
Telephony-level hangup reason
Arbitrary metadata associated with the call
Last update timestamp