invalid_request
Something in the request is wrong
HTTP 400invalid_request
The body or a parameter did not pass validation. The param field names the field at fault.
Why it happens
- A required field was missing, or a value was of the wrong type.
- A phone number was sent without a country code, which cannot be routed.
- An unknown field was sent: unknown fields are refused rather than ignored, so a typo fails loudly instead of silently doing nothing.
How to fix it
- Branch on
param, not on the message text. The message is written for a human and may be reworded. - Send phone numbers in E.164, with the country code. Woyra accepts spaces, hyphens, brackets and a leading 00, but never a national number on its own.
Is it worth retrying?
Only after you change something. Retrying as-is will fail again.
What the response looks like
HTTP/1.1 400
Content-Type: application/json
Woyra-Request-Id: req_01J...
{
"error": {
"code": "invalid_request",
"message": "…",
"doc_url": "https://docs.woyra.io/errors/invalid_request",
"param": null,
"request_id": "req_01J..."
}
}