Create Campaign
Create a new campaign for the authenticated user. This endpoint accepts multipart/form-data.Request Body (multipart/form-data)
string
required
Campaign name
integer
required
ID of the phone number to use
string
required
ID of the agent to use for calls
file
required
CSV file with recipient phone numbers. Format: one phone number per line.
boolean
required
Whether to send the campaign immediately (true) or schedule it (false)
string
Date in YYYY-MM-DD format (required if send_immediately is false)
string
Time in HH:MM:SS format (required if send_immediately is false)
CSV File Format
The recipients file should be a CSV with phone numbers. Example:Scheduled Campaign Example
To schedule a campaign for later:Response
Created campaign object
Error Responses
Unauthorized - Invalid or missing authentication
Phone number or agent not found
Validation error - Invalid request body or file format
Bad gateway - ElevenLabs API error
