Errors
destination_not_allowed
Calls to this country are not enabled for your workspace.
| HTTP status | Type | Code |
|---|---|---|
| 422 | invalid_request_error | destination_not_allowed |
What it means
POST /calls dials your workspace's home country (from your billing address; India when none is set). Contact support to enable more countries.
How to handle it
Fix the request before sending it again; retrying the same request returns the same error. error.param names the offending field when there is one.
Example response
{
"detail": [
{
"type": "missing",
"loc": [
"body",
"phone"
],
"msg": "Field required"
}
],
"error": {
"type": "invalid_request_error",
"code": "destination_not_allowed",
"message": "Calls to this country are not enabled for your workspace.",
"param": "phone",
"docUrl": "https://docs.callmitra.ai/errors/destination_not_allowed",
"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/calls/— Place a call