On this page

API

idempotency_key_reuse

HTTP 422. Idempotency key reuse

What it means

The same key was used for a different request.

What to do

A key names one request. Generate a new key for a new request, and reuse it only when you retry the identical request.

Retrying

Do not retry the same request. Change it first.

Example

json
{
  "type": "https://reuseforge.com/docs/api/errors/idempotency_key_reuse",
  "title": "Idempotency key reuse",
  "status": 422,
  "detail": "This Idempotency-Key was used for a different request.",
  "instance": "/api/v1/items/acme/invoice-extractor",
  "code": "idempotency_key_reuse",
  "request_id": "req_c4v8n2m6x1z3"
}

Every error is application/problem+json (RFC 9457). Branch on code, show detail to people and quote request_id when you ask for help. See the error catalogue.