Troubleshooting
invalid_request
The request could not be read.
HTTP 400Fix is on your sideDo not retry unchanged
What it means
We could not parse the request body or its headers before validating it. Nothing was changed.
Why it happens
- The body is not valid JSON: a trailing comma, single quotes, or an unescaped character.
Content-Typeis missing or is notapplication/json. The API is JSON only; form fields (-d name=value) are not read.- The body was sent with a GET request, or a header value is malformed.
What to do
- Send a JSON body with
Content-Type: application/json. With curl, quote the body:-d '{"hostname":"careers.acme.com"}'. - Check the body with a JSON linter or
JSON.stringifyit rather than building it by hand. error.messagenames the part we could not read.
Was this helpful?
Edit this page