Overview
The Campaigns API allows you to create and manage voice campaigns for bulk outreach. Campaigns enable you to send voice calls to multiple recipients using your configured agents and phone numbers.Key Features
- Create campaigns with CSV recipient lists
- Schedule campaigns for future delivery
- Send campaigns immediately or schedule for later
- Track campaign status and recipients
- Integration with ElevenLabs batch calling
Common Use Cases
Create Campaign
Use the
POST /campaigns endpoint to create a new campaign with a CSV file of recipients.List Campaigns
Use the
GET /campaigns endpoint to view all your campaigns.Get Campaign
Use the
GET /campaigns/{id} endpoint to retrieve details about a specific campaign.Schedule Campaign
Set
send_immediately: false and provide schedule_date and schedule_time to schedule a campaign.Campaign Properties
Campaigns include the following key properties:- id: Unique campaign identifier
- name: Campaign name
- status: Current campaign status
- elevenlabs_batch_call_id: Associated ElevenLabs batch call ID
- recipients_count: Number of recipients in the campaign
- scheduled_at: Scheduled delivery timestamp (if scheduled)
- send_immediately: Whether the campaign was sent immediately
- created_at: Campaign creation timestamp
Creating a Campaign
To create a campaign, you need:- Campaign name: Descriptive name for the campaign
- Phone number ID: ID of the phone number to use
- Agent ID: ID of the agent to use for calls
- Recipients file: CSV file with recipient phone numbers
- Send immediately: Boolean flag for immediate or scheduled delivery
- Schedule date/time: Optional scheduling information
CSV File Format
The recipients file should be a CSV with phone numbers. Example:Scheduling
Campaigns can be sent immediately or scheduled:- Immediate: Set
send_immediately: true - Scheduled: Set
send_immediately: falseand provide:schedule_date: Date inYYYY-MM-DDformatschedule_time: Time inHH:MM:SSformat
