Skip to main content
POST
Create campaign, upload leads file, and enqueue calls
Legacy endpoint - deprecated. Unversioned endpoints are scheduled for removal on July 31, 2026. Use the /v1 version for new integrations. This endpoint remains available for existing integrations until then.
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 a phone_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 returns 400 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

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-organization-id
string
required

RSA encrypted organization ID (base64 format)

Example:

"BASE64_ENCRYPTED_ORG_ID_HERE"

Body

multipart/form-data
file
file
required

CSV or Excel leads file

title
string
required
Example:

"Enter campaign title here"

agent_id
string
required
Example:

"agent_123"

agent_version_number
number
required
Example:

1

starts_at
string
Example:

""

ends_at
string
Example:

""

calling_hours_start
string
Example:

""

calling_hours_end
string
Example:

""

Response

201

Batch call created and queued