Skip to main content
Use a batch for campaigns: re-engaging old enquiries, reminding a class about tomorrow’s session, collecting feedback from last month’s customers.

Create a batch

Each row is accepted or rejected on its own; one bad row never fails the 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

Each call still sends its own webhook as it finishes. To list a batch’s calls with their outcomes: GET /v1/calls?batch_id=batch_… (see Pagination).

How fast

Batch calls are dialled as your lines free up, behind single calls from POST /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 variables short and natural; the agent says them out loud.
  • Run the batch first with "test": true to catch rejected rows without calling anyone.
  • Large lists: split by region or language and use the matching agent for each.