Errors
campaign_default_inbound_exists
Another default inbound campaign already exists for this phone number.
| HTTP status | Type | Code |
|---|---|---|
| 409 | conflict_error | campaign_default_inbound_exists |
What it means
A phone number has at most one default inbound campaign, which answers callers no other campaign claims. Send isDefaultInbound: false, or first turn it off on the other campaign with PUT /campaigns/{campaignId}.
How to handle it
Fetch the resource again to see its current state, then decide whether to retry.
Example response
{
"detail": "Another default inbound campaign already exists for this phone number.",
"error": {
"type": "conflict_error",
"code": "campaign_default_inbound_exists",
"message": "Another default inbound campaign already exists for this phone number.",
"param": null,
"docUrl": "https://docs.callmitra.ai/errors/campaign_default_inbound_exists",
"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/campaigns/— Create an empty campaignPOST /api/v1/campaigns/create-with-leads— Create a campaign with its leadsPUT /api/v1/campaigns/{campaign_id}— Update a campaign