Skip to content

Bad request

What it means

Auto couldn't read the request because it isn't put together the way the API expects. For example, a field is given twice, or the body isn't a JSON object. Sending it again unchanged fails the same way.

What to do

Read the problem's detail first. It says what happened to this request.

  • Fix what the detail names, then send the request again.
  • Give each field in one place only: the path, the query string or the body.
  • Send the fields of a GET or DELETE request in the query string, with no body. Send the fields of a POST or PUT request as one JSON object in the body.
  • Send a credential as Authorization: Bearer <key>, with exactly one key or token.

Technical details

  • Type: https://on.auto/problems/bad_request
  • Status: 400
  • Reason: bad_request

Responses and errors in the HTTP API reference has the full detail. Problem types lists every type.