Skip to main content

We couldn't read the request

The bad_request error: why it happens and how to fix it.

On this page

Code: bad_request. Status: 400.

Why it happens

The body isn't valid JSON, a value in the address is wrong, or the address doesn't take that method. The last one has status 405.

How to fix it

Check the JSON, the method and the address. The message says which part is wrong.

What the answer looks like

Example answer
{
  "error": {
    "code": "bad_request",
    "message": "A short message about this call.",
    "docs": "https://usetotems.com/docs/errors/bad_request"
  },
  "request_id": "req_..."
}

The answer can also have field and help. See all error codes.

Was this useful?

Your answer stays in this browser.