Skip to Content
CallMitraDocs
Errors

campaign_not_running

Campaign is not active.

HTTP statusTypeCode
409conflict_errorcampaign_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 now
  • POST /api/v1/instant/call-now — Call a lead in a campaign now
  • POST /api/v1/calls/ — Place a call
  • POST /api/v1/campaigns/{campaign_id}/resume-dialing — Resume automatic dialing
  • PUT /api/v1/campaigns/{campaign_id} — Update a campaign

On this page