Errors
campaign_not_running
Campaign is not active.
| HTTP status | Type | Code |
|---|---|---|
| 409 | conflict_error | campaign_not_running |
What it means
The campaign is stopped, so it cannot place or resume calls. Start it with POST /campaigns/{campaignId}/start, then retry.
How to handle it
Fetch the resource again to see its current state, then decide whether to retry.
Example response
{
"detail": "Campaign is not active.",
"error": {
"type": "conflict_error",
"code": "campaign_not_running",
"message": "Campaign is not active.",
"param": null,
"docUrl": "https://docs.callmitra.ai/errors/campaign_not_running",
"requestId": "req_3f9c2a7d1b8e4c6a9f0e2d4b6a8c0e1f"
}
}Branch on error.code; it never changes once published. The message text can change. See Errors for the envelope.
Returned by
POST /api/v1/leads/{lead_id}/call-now— Call a lead nowPOST /api/v1/instant/call-now— Call a lead in a campaign nowPOST /api/v1/calls/— Place a callPOST /api/v1/campaigns/{campaign_id}/resume-dialing— Resume automatic dialingPUT /api/v1/campaigns/{campaign_id}— Update a campaign