Upload Campaign Contact List
Uploads a contact list for a campaign. Accepts a CSV file and campaign configuration as form data.
POST
Upload Campaign Contact List
Upload a CSV file with contact data to create a new campaign. Once uploaded, you can start the campaign to begin making calls.
📋 Quick Start
- Prepare your CSV - Download template from your campaigns tab
- Configure your agent - Set up prompts and custom variables
- Upload & configure - Submit CSV with campaign settings
- Start calling - Use the returned
list_idto start your campaign
📁 CSV File Requirements
Example CSV Structure
⚙️ Configuration Parameters
Required Fields
Optional Settings
CSV File Format
Download the exact CSV template from your campaigns tab to get the correct format according to your specific agent configuration. The required columns vary based on your agent’s custom variables.🔗 Variable Mapping
Connect your CSV columns to agent variables so your AI can use the contact data during calls.How It Works
Map CSV column names to your agent’s custom variables:Using Variables
Reference mapped variables in your agent prompt with@{{variable_name}}:
@{{callee_name}}→ “John Doe”@{{company_name}}→ “XYZ Corp”
⏰ Call Configuration
Control when and how your campaign calls are made:✅ What Happens Next?
Success Response
You’ll receive alist_id - save this! You need it to start your campaign.
Next Steps
- Save the
list_idfrom the response - Start your campaign using the
list_id - Monitor progress and view results
Error Handling
If upload fails, check:- ✅ CSV format and required columns
- ✅ Valid phone number format with country codes
- ✅ Agent ID exists and is active
- ✅ API key permissions
💡 Pro Tip: Set
remove_invalid_rows=true to automatically skip problematic contacts instead of failing the entire upload.Headers
Body
multipart/form-data
Response
Contact list uploaded and campaign saved successfully.
