invalid_json
The request body could not be parsed as JSON.
| HTTP status | 400 |
| Error type | invalid_request_error |
| Retry | No. 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.