invalid_request
HTTP status 400. The request is missing a field or a field is malformed.
Fix
Correct the field named in the message and send the request again.
What it looks like
{
"error": {
"type": "invalid_request",
"message": "The request is missing a field or a field is malformed.",
"fix": "Correct the field named in the message and send the request again.",
"docs_url": "https://authtext.com.au/docs/errors/invalid_request.md",
"request_id": "req_01JD3XA7Q2M7Q8R5T6V1W0XYZA"
}
}
The message and fix can be more specific than shown here. type never changes, so branch on that. Quote the request_id if you ask for help.
All errors: errors.
This page as markdown, for an AI agent: /docs/errors/invalid_request.md