Sign inConnect your AI
api / errors

Idempotency key required

HTTP 400, code idempotency_key_required.

Updated · API v1

What it means

Every POST needs an Idempotency-Key header.

What to do

Send a unique key of 8 to 160 visible ASCII characters (a UUID works) with each new POST, and the same key when you retry it.

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/idempotency-key-required",
  "title": "Idempotency key required",
  "status": 400,
  "detail": "…",
  "code": "idempotency_key_required",
  "request_id": "3f5b9c2e-8d41-4a7e-9b0c-6e2d1f4a8c37",
  "instance": "/api/v1/…"
}

Every error type and how to handle them.