invalid_json

The request body could not be parsed as JSON.

HTTP status400
Error typeinvalid_request_error
RetryNo. Fix the request.

What to do

The `message` carries the parser's position. Check for trailing commas and that `Content-Type` is `application/json`.

Response shape

{
  "error": {
    "type": "invalid_request_error",
    "code": "invalid_json",
    "message": "…",
    "doc_url": "https://docs.borga.is/errors/invalid_json",
    "request_id": "req_…"
  }
}

See all error codes and how to handle them.