Start Batch Calls
Initiate a batch call operation using a CSV file and specified agent
Headers
API key used for authenticating requests to the API.
Workspace identifier for the API.
Request Body
This endpoint accepts multipart/form-data with the following fields:
CSV file containing the batch call data. Maximum file size: 20MB.
The ID of the agent that will be used to make the batch calls.
Testing Note: The “Try Now” button in this documentation doesn’t support file uploads. Use the cURL example below or a tool like Postman to test this endpoint.
CSV File Format
The CSV file should contain the following columns:
phone_number
- The phone number to call (required)first_name
- First name for personalizationlast_name
- Last name for personalizationemail
- Email address- Additional custom fields for dynamic variables
Response
Unique identifier for the batch call operation
Total number of calls that will be made in this batch
Current status of the batch operation (e.g., “queued”, “processing”)
Success message confirming the batch initiation
Example Usage
Example Response
Testing with Different Tools
Processing Flow
- File Upload: The CSV file is uploaded and validated
- Record Validation: Each record in the CSV is validated for required fields
- Batch Preparation: A batch configuration is created with the specified agent
- Queue Initialization: Individual call jobs are queued for processing
- Execution: Calls are made according to your account’s rate limits
Error Responses
Error message describing what went wrong
Common Error Codes:
400
- No file uploaded, no agent ID provided, or CSV validation failed413
- File size exceeds 20MB limit500
- Failed to prepare batch or start batch execution
Rate Limits
Batch calls are subject to your account’s rate limits. The system will automatically manage the call queue to respect these limits while maximizing throughput.