Skip to main content

request_body_not_json

HTTP Status: 400 Category: Wire

When you see this

Content-Type is application/json but body does not parse.

How to fix it

Fix the JSON syntax. error.details.parse_error_position gives the approximate byte offset of the first parse failure.

Example response

{
"error": {
"code": "request_body_not_json",
"message": "Content-Type is application/json but body does not parse.",
"hint": null,
"doc_url": "https://docs.valara.cloud/api-reference/errors/request_body_not_json",
"request_id": "req_01H...",
"details": {
"errors": [],
"field_count": 0
}
}
}