Skip to Content
CallMitraDocs
Errors

campaign_not_found

Campaign not found.

HTTP statusTypeCode
404not_found_errorcampaign_not_found

What it means

No campaign with this id exists in your workspace, or it was deleted. List your campaigns with GET /campaigns and use one of the returned ids.

How to handle it

Check the ID in the path. It may be wrong, deleted, or belong to another workspace; the API answers 404 rather than revealing other workspaces’ data.

Example response

{
  "detail": "Campaign not found.",
  "error": {
    "type": "not_found_error",
    "code": "campaign_not_found",
    "message": "Campaign not found.",
    "param": null,
    "docUrl": "https://docs.callmitra.ai/errors/campaign_not_found",
    "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/create-with-leads — Create a campaign with its leads
  • POST /api/v1/leads/ — Create a lead
  • DELETE /api/v1/campaigns/{campaign_id} — Delete a campaign
  • GET /api/v1/campaigns/{campaign_id} — Get a campaign
  • GET /api/v1/campaigns/{campaign_id}/dial-status — Dialing status
  • GET /api/v1/campaigns/{campaign_id}/leads — List a campaign's leads
  • POST /api/v1/campaigns/{campaign_id}/pause-dialing — Pause automatic dialing
  • POST /api/v1/campaigns/{campaign_id}/resume-dialing — Resume automatic dialing
  • POST /api/v1/campaigns/{campaign_id}/start — Start a campaign
  • POST /api/v1/campaigns/{campaign_id}/stop — Stop a campaign
  • PUT /api/v1/campaigns/{campaign_id} — Update a campaign
  • PUT /api/v1/campaigns/{campaign_id}/leads — Add or remove leads

On this page