Initiate an outbound AI phone call. The call is placed immediately.
When answered, the prompt guides the live conversation. After the call
completes, structured data is extracted from the transcript if a
returns schema was provided.
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"to_number": "<string>",
"from_number": "<string>",
"status": "queued",
"direction": "outbound",
"prompt": "<string>",
"context": {},
"returns": {},
"result": {},
"result_status": "completed",
"result_error": "<string>",
"language": "<string>",
"webhook_url": "<string>",
"webhook_status": "delivered",
"webhook_error": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"answered_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"duration_seconds": 123,
"billed_duration_seconds": 123,
"billing_amount_milli_cents": 123,
"reservation_status": "settled",
"error_code": "<string>",
"error_message": "<string>",
"hangup_cause": "<string>",
"metadata": {},
"updated_at": "2023-11-07T05:31:56Z"
}API key starting with sk_
Phone number to call in E.164 format
"+15551234567"
Instructions for the AI during the call
"Confirm dental appointment tomorrow at 2pm"
Arbitrary JSON context available to the AI during the call
{
"patient": "Maria Lopez",
"doctor": "Dr. Chen"
}
Schema defining what structured data to extract from the call. Keys are field names, values describe expected types.
{
"confirmed": "boolean",
"reschedule_to": "string"
}
Language code for the call (en, es)
"en"
Caller ID phone number in E.164 format. Must be an active number owned by the organization. If omitted, the organization's oldest active purchased number is used. The request fails if the organization has no active numbers.
"+15559876543"
Per-call inline webhook URL. Receives every lifecycle event for
this call, signed with the organization's default signing
secret. For account-wide fan-out across multiple calls, use
POST /v1/webhook_endpoints instead.
"https://your-server.com/callingbox-webhook"
Call created successfully
Unique call identifier
Destination phone number
Caller ID phone number
queued, initiated, ringing, in_progress, completed, no_answer, busy, canceled, failed Call direction
"outbound"
The prompt used for the call
Context provided for the call
Return schema defined for the 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
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"to_number": "<string>",
"from_number": "<string>",
"status": "queued",
"direction": "outbound",
"prompt": "<string>",
"context": {},
"returns": {},
"result": {},
"result_status": "completed",
"result_error": "<string>",
"language": "<string>",
"webhook_url": "<string>",
"webhook_status": "delivered",
"webhook_error": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"started_at": "2023-11-07T05:31:56Z",
"answered_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"duration_seconds": 123,
"billed_duration_seconds": 123,
"billing_amount_milli_cents": 123,
"reservation_status": "settled",
"error_code": "<string>",
"error_message": "<string>",
"hangup_cause": "<string>",
"metadata": {},
"updated_at": "2023-11-07T05:31:56Z"
}