API error · HTTP 400

invalid_json

body is not a JSON object.

What it means

body is not a JSON object.

How to handle it

Send a valid JSON object as the request body; arrays, scalars, and malformed JSON are not accepted.

Wire contract

Codeinvalid_json
Classinvalid_request
HTTP status400
Meta keysNone
RaisedYes

The response uses the standard {"error": {…}} envelope. Branch on error.code, not the human-readable message. Preserve request_id when reporting a failure.