Skip to navigation

Make a call

Initiate an outbound call to the specified phone number.

The call will use the specified voice agent and any metadata provided will be available to the agent during the conversation.

Calls go out between 9 AM and 9 PM in the called person’s own time. A call asked for outside those hours is queued and placed when they open: the answer is 202 with status queued, scheduled_for and the queued call’s id. A second request for the same number on the same agent before it goes out joins it (one call, the latest metadata). Follow it with GET /calls/queued/{id}; cancel it with DELETE /calls/queued/{id}. Send queue_outside_hours: false to be refused (422 outside_hours) instead.

Retries: with retry (or the agent’s api_call_retry setting) a call that isn’t answered — no answer, busy, voicemail… as listed in on_statuses — is called again after interval_value interval_unit, up to max_retries times, always inside calling hours. Each retry’s metadata carries queued_call_id and call_attempt. A call that rang out answers status handled with the queued call’s id and scheduled_for (the next try). A newer call to the same person on the same agent replaces retries still to come; DELETE /calls/queued/{id} stops them.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
agent_idstringRequired>=1 character
Voice agent UUID
source_numberstringRequired>=1 character

Source phone number to call from (+91…)

phone_numberstringRequired>=1 character

Phone to call (+91…)

metadataobject or nullOptional
Custom data for agent
queue_outside_hoursbooleanOptionalDefaults to true

Outside calling hours (9 AM–9 PM in the called person’s time): true queues the call and places it when the hours open (status queued); false refuses it (422)

retryobject or nullOptional

Call again if not answered. Absent = the agent’s api_call_retry setting (voice_response_settings); {“enabled”: false} = no retries for this call

Response

Successful Response
dataobject
Call data inside response envelope.
request_idstring
timestampdatetime
successbooleanOptionalDefaults to true

Errors

422
Unprocessable Entity Error