Batch Calls
Create Batch Call
deprecated
Upload a contact list and run a one-shot batch of outbound calls.
POST
Create campaign, upload leads file, and enqueue calls
A batch call lets you upload a CSV or XLSX file of contacts and trigger a single outbound call to each one. Every row in the file becomes one call. The batch starts processing immediately (or at a scheduled time) and calls are made concurrently up to your configured limit.
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:
In your agent prompt, reference these as
{{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.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
RSA encrypted organization ID (base64 format)
Example:
"BASE64_ENCRYPTED_ORG_ID_HERE"
Body
multipart/form-data
CSV or Excel leads file
Example:
"Enter campaign title here"
Example:
"agent_123"
Example:
1
Example:
""
Example:
""
Example:
""
Example:
""
Response
201
Batch call created and queued
Create campaign, upload leads file, and enqueue calls