Sign inConnect your AI
api / errors

Invalid request

HTTP 400, code invalid_request.

Updated · API v1

What it means

A path parameter, query parameter or body field is missing, unknown or out of range, or the body is not valid JSON.

What to do

Read detail and errors (each with the field's path), fix the request and send it again. Unknown parameters are refused rather than ignored.

Not retryable as it is: sending the same request again gives the same answer.

The answer

application/problem+json
{
  "type": "https://www.adspy.sh/docs/api/errors/invalid-request",
  "title": "Invalid request",
  "status": 400,
  "detail": "…",
  "code": "invalid_request",
  "request_id": "3f5b9c2e-8d41-4a7e-9b0c-6e2d1f4a8c37",
  "instance": "/api/v1/…"
}

Every error type and how to handle them.