Starts or stops a campaign. Use this to control when a campaign is actively dialing leads.
Endpoint
POST /user/campaigns/update-status
Request
ID of the campaign to update.
Action to perform: start or stop.
Response
Confirmation message (e.g., Campaign started successfully.).
Whether the operation succeeded.
ID of the updated campaign.
New status of the campaign. in-progress when started, stopped when stopped.
Example
curl -X POST "https://portal.intellixent.ai/api/user/campaigns/update-status" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"campaign_id": 1, "action": "start"}'
{
"message": "Campaign started successfully.",
"success": true,
"data": {
"campaign_id": 1,
"status": "in-progress"
}
}
{
"message": "Campaign stopped successfully.",
"success": true,
"data": {
"campaign_id": 1,
"status": "stopped"
}
}
A campaign must have leads assigned before it can be started. Add leads using the Create lead endpoint.