Create Batch Call
Upload a contact list and run a one-shot batch of outbound calls.
File format
Your file must include aphone_number column. All other column headers become dynamic variables that are injected into the agent’s prompt for each individual call:
| phone_number | customer_name | loan_amount | product |
|---|---|---|---|
| 9876543210 | Priya Sharma | 500000 | home_loan |
| 9123456789 | Rahul Mehra | 250000 | car_loan |
{{customer_name}}, {{loan_amount}}, etc.
Batch vs. Campaign
Use a batch call for a one-shot outreach where you upload the full list upfront and don’t need to add leads later. If you need ongoing lifecycle control (pause, resume, add leads incrementally), use Campaigns instead.File requirements
- Formats: CSV, XLSX, XLS
- Max size: 10 MB
- Required column:
phone_number - Phone numbers should be valid international numbers. Include the country code for non-local destinations.
Destination validation
Before launch, each row is checked against the outbound route selected for the batch. For non-SIP routes, the destination country and prefix must be enabled in Workspace Settings > Telephony Config. If one or more rows fail validation, the API returns400 Bad Request with grouped error details, including the affected row numbers. Common reasons include invalid phone number format, unsupported destination country, unsupported prefix, or no enabled countries configured.
Request example
This is amultipart/form-data request. Use the interactive tester above or the following curl example:
Authorizations
Pass your API key as a Bearer token in the Authorization header.
Body
"agt_abc123"
CSV, XLSX, or XLS file. Max 10 MB. Required column: phone_number. All other columns become dynamic variables. Destination numbers must pass workspace route validation.
"+912234567890"
"May Follow-Up Campaign"
10
Response
Batch created.
"batch_abc123"
"May Follow-Up Campaign"
Create acknowledgement status or batch campaign lifecycle status. Legacy create responses can return initiated before later reads show draft, active, running, paused, completed, or cancelled.
initiated, draft, active, running, paused, completed, cancelled "initiated"
250
235
15
"agt_abc123"
"2024-03-01T10:00:00.000Z"