Campaign Leads
Bulk Upload Leads
Upload a CSV or XLSX file to add multiple leads to a campaign at once.
POST
Bulk upload leads via file
Uploads a file to add multiple leads to a campaign in a single request. This is the fastest way to populate a campaign with a large contact list.
In your agent prompt, reference these as
File format
Your file must include aphone_number column. All other column headers are treated as dynamic variable names and are injected into the agent’s prompt per lead:
{{name}}, {{city}}, {{product_interest}}, etc. Each call is personalized with that lead’s row data.
File requirements
- Formats: CSV, XLSX, or XLS
- Max size: 10 MB
- Required column:
phone_number - Optional columns: Any additional column becomes a dynamic variable (max 15 custom columns)
Destination validation
Uploaded campaign leads are checked against the campaign’s outbound phone number before they are queued. For non-SIP routes, each destination must be allowed by Workspace Settings > Telephony Config. If rows fail validation, the API returns400 Bad Request with grouped errors and row numbers. Fix invalid phone numbers, unsupported countries, unsupported prefixes, or missing Telephony Config coverage before uploading again.
Request example
Authorizations
Pass your API key as a Bearer token in the Authorization header.
Path Parameters
Body
multipart/form-data
CSV, XLSX, or XLS file. Max 10 MB. Must contain a phone_number column. Destination numbers must pass workspace route validation.
Bulk upload leads via file