Errors
dnc_no_valid_numbers
Add at least one Indian mobile number.
| HTTP status | Type | Code |
|---|---|---|
| 422 | invalid_request_error | dnc_no_valid_numbers |
What it means
None of the numbers in phones is a valid Indian mobile number. Send 10-digit mobiles or +91 numbers, one per line or separated by commas.
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": "dnc_no_valid_numbers",
"message": "Add at least one Indian mobile number.",
"param": "phone",
"docUrl": "https://docs.callmitra.ai/errors/dnc_no_valid_numbers",
"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/dnc— Add numbers to do-not-call