invalid_json
HTTP 400 · The request body is not a JSON object.
Endpoints: POST /v1/signup, POST /v1/inboxes, PATCH /v1/inboxes/{id}
When it happens
Section titled “When it happens”| When | Message (as returned) | Fix (as returned) |
|---|---|---|
The body does not parse as JSON, or is JSON but not an object (an array, string, number or null). An empty body counts as {}. Content-Type is not checked. |
Body must be a JSON object. |
Send Content-Type: application/json with a JSON object. |
What to do
Section titled “What to do”- Send a JSON object as the body.
Example
Section titled “Example”{ "type": "https://docs.replyz.io/errors/invalid_json", "code": "invalid_json", "status": 400, "message": "Body must be a JSON object.", "fix": "Send Content-Type: application/json with a JSON object.", "docs": "https://docs.replyz.io/errors/invalid_json.md"}All codes: Errors.