Skip to main content
400 Bad RequestRequest

INVALID_JSON

The body is not valid JSON

When it happens

The request body could not be parsed as JSON.

How to fix it

  1. Send Content-Type: application/json and a body your JSON library produced, not one built by string concatenation.
  2. Check for trailing commas, unquoted keys and single quotes.
RetryingFix the request, then send it with a new key.How idempotency works

Example response

HTTP 400 Bad Request
{
"status": "failed",
"error": {
"code": "INVALID_JSON",
"message": "The request body is not valid JSON.",
"doc_url": "https://developer.getreeds.co/errors/INVALID_JSON"
}
}