Errors
campaign_not_found
Campaign not found.
| HTTP status | Type | Code |
|---|---|---|
| 404 | not_found_error | campaign_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 nowPOST /api/v1/instant/call-now— Call a lead in a campaign nowPOST /api/v1/calls/— Place a callPOST /api/v1/campaigns/create-with-leads— Create a campaign with its leadsPOST /api/v1/leads/— Create a leadDELETE /api/v1/campaigns/{campaign_id}— Delete a campaignGET /api/v1/campaigns/{campaign_id}— Get a campaignGET /api/v1/campaigns/{campaign_id}/dial-status— Dialing statusGET /api/v1/campaigns/{campaign_id}/leads— List a campaign's leadsPOST /api/v1/campaigns/{campaign_id}/pause-dialing— Pause automatic dialingPOST /api/v1/campaigns/{campaign_id}/resume-dialing— Resume automatic dialingPOST /api/v1/campaigns/{campaign_id}/start— Start a campaignPOST /api/v1/campaigns/{campaign_id}/stop— Stop a campaignPUT /api/v1/campaigns/{campaign_id}— Update a campaignPUT /api/v1/campaigns/{campaign_id}/leads— Add or remove leads