Create Batch API
Discover how to create a batch for Bolna Voice AI agent by uploading a CSV file containing user contact numbers and prompt variable details for users.
batch_id. The batch does not start calling until you call POST /batches/{batch_id}/schedule.
CSV format
contact_numberis required — E.164 format- Any other column becomes a
{variable}available in your agent’s prompt and welcome message - The per-call execution stores these columns in
context_details.recipient_data
Example request
Usemultipart/form-data — not JSON.
Next step: schedule the batch
A created batch is idle until scheduled. CallPOST /batches/{batch_id}/schedule with a scheduled_at timestamp:
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The ID of the agent
CSV file to upload
JSON string containing retry configuration for failed calls. See auto-retry documentation for details. Example - {"enabled":true,"max_retries":2,"retry_intervals_minutes":[15,30]}
URL that Bolna POSTs the batch payload to when the batch finishes processing, and again when all of its executions reach a terminal state. Use it to receive the batch's executions without polling. Must be a valid URL; an invalid value is ignored and no webhook is sent.
"https://your-server.com/batch-webhook"

