Send Voice Calls with an Agent

Dispatches AI-driven phone calls to a list of recipients using a voice agent. Processing is asynchronous: a 202 Accepted response means the calls were enqueued. The optional retry_* fields control automatic re-dialing of unanswered calls and only take effect when retry_attempts is provided.

The agent must belong to the app placing the call: one bound to another app of the same account answers 404.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
length ≤ 200

Campaign title (1–200 characters).

uuid
required

ID of the voice agent that drives the calls. Must exist and belong to the authenticated client.

phones
array
required
length between 1 and 1000

Phone numbers to dial (1–1000 per request). Each item is either a plain phone number string (legacy format) or an object { phone, call_context } used to attach free-text, per-call context. Note: a large batch (up to 1000 phones) where most items carry a near-maximum call_context (1500 characters) can push the JSON payload past the server's 250kb request body limit, which returns 413 Payload Too Large before validation even runs — this is a practical limitation to keep in mind, not a bug.

phones*

Optional. Country calling code put in front of each number that does not carry it yet, as a string or a number, with or without + ("52", "+52" or 52); 55 (Brazil) when absent. A number outside Brazil is checked against its country's numbering plan: a national number gets the code in front, a number that already carries it is dialed as it is, and anything else is a 422 pointing to its position in phones (phones.3). A valid number written with + keeps its own country, so one request may mix countries; a + number that is not valid for its country is read with the ddi. On the default ddi, a + number whose digits are also a valid Brazilian number stays in Brazil (+33992761304 is a DDD 33 mobile, not France): send the country in ddi to dial it abroad. Brazilian numbers are not checked against the numbering plan. Replaces the deprecated is_international, which will be removed: send ddi instead.

boolean
deprecated

Deprecated: send ddi instead; it will be removed. With true, each number is dialed as sent, without the +, through the international route, the number checks are skipped and ddi is not applied (it must still be a valid code). false is the same as leaving it out.

integer
1 to 3

Re-dial attempts for unanswered calls. When omitted, retries are disabled.

integer
5 to 180

Minutes between retry attempts.

string
^([01][0-9]|2[0-3]):[0-5][0-9]$

Cutoff time for retries in HH:MM format. Must be between 08:00 and 21:45 (America/Sao_Paulo) and at least 10 minutes in the future.

uri
length ≤ 512

Optional. URL that receives the status events (campaign.status) of this send instead of the app's webhook URL. It is called exactly as written, query string included, so it can carry your own identifiers (for example ?order=123). Replies to an SMS (sms.inbound) keep going to the app's webhook URL. Must use http or https, have a public hostname without underscores and be at most 512 characters; private and reserved addresses are refused. No authentication header is sent to it.

Responses

Callback
Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json