Errors
phone_number_not_dialable
This phone number cannot place calls.
| HTTP status | Type | Code |
|---|---|---|
| 422 | invalid_request_error | phone_number_not_dialable |
What it means
The number is inactive, has no E.164 number, or is missing its carrier credentials or SIP trunk. The message says which; fix the number in the console and retry.
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": "phone_number_not_dialable",
"message": "This phone number cannot place calls.",
"param": "phone",
"docUrl": "https://docs.callmitra.ai/errors/phone_number_not_dialable",
"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