Create a batch
index is the row’s position in your calls array. Rejection codes:
A row can set its own
agent_id to override the batch’s; its entry in calls then shows that agent_id. A row naming an agent that does not exist or is turned off is rejected with that agent’s error code (agent_not_found, agent_disabled). The whole batch is refused only when it has no rows, more than 1,000 rows, an unknown agent, or the account has no credits.
Send an Idempotency-Key header (up to 251 characters) with the batch so a retried request does not queue the calls twice: the retry gets the first response back. See Idempotency.
Follow progress
GET /v1/calls?batch_id=batch_… (see Pagination).
How fast
Batch calls are dialled as your lines free up, behind single calls fromPOST /v1/calls, and only inside calling hours. A batch created in the evening starts when your next calling window opens. Calls still waiting after 48 hours end expired. For more than 1,000 contacts, send several batches; they share the same queue.
To stop a batch, cancel its calls that are still queued with POST /v1/calls/{id}/cancel.
Tips
- Keep
variablesshort and natural; the agent says them out loud. - Run the batch first with
"test": trueto catch rejected rows without calling anyone. - Large lists: split by region or language and use the matching agent for each.