Path Parameters
campaign_id(integer, required): The unique identifier of the campaign
Prerequisites
Before starting a campaign, ensure:- Campaign has at least one contact imported
- Campaign status is
draft,scheduled, orpaused - Associated assistant is properly configured
Behavior
- Immediate schedule: Execution begins immediately
- Scheduled: Execution is queued for the scheduled time
- Paused campaigns: Resume execution from where it stopped
Response
Response (Immediate Start)
Response (Scheduled)
Response Fields
| Field | Description |
|---|---|
success | Whether the operation succeeded |
message | Human-readable status message |
task_id | Background task identifier for tracking |
campaign_id | The campaign ID |
status | New campaign status |
scheduled_time | When execution will begin (for scheduled campaigns) |
Example Code
cURL
Python
JavaScript
Error Responses
| Status Code | Description |
|---|---|
| 400 | Cannot start campaign - invalid status or no contacts |
| 400 | Scheduled time is in the past |
| 404 | Campaign not found |
| 500 | Background task system unavailable |
Common Error Messages
| Error | Solution |
|---|---|
| ”No contacts found” | Import contacts before starting |
| ”All contacts have already been processed” | Use re-execute endpoint to retry |
| ”Campaign is not running” | Campaign is already in wrong status |
| ”Scheduled time is in the past” | Update schedule to future time |