idempotency_key_reused
HTTP 422 — Idempotency-Key reused with a different request
What it means
An `Idempotency-Key` header was reused with a DIFFERENT request body or endpoint than its first use. A key maps to exactly one logical request.
Common causes
- A key-generation bug that reuses keys across distinct operations.
- The request body changed between retries (timestamps, random ids) so the retry no longer matches byte-for-byte.
How to fix it
Mint one unique key per logical operation and reuse it ONLY for byte-identical retries of that operation.
Should you retry?
No — use a fresh key for the new request.
The response shape
Every /v1 error is an RFC 9457 application/problem+json document: type links to this page, code is the stable value to branch on (never parse title or detail), and request_id identifies the request to support. Validation failures add an errors array of per-field JSON pointers.
API overview · API reference · All error codes:
missing_credentials— HTTP 401, Missing credentialsinvalid_api_key— HTTP 401, Invalid API keyinvalid_token— HTTP 401, Invalid access tokenunsupported_credential_type— HTTP 403, Credential type not usable on this surfaceinsufficient_scope— HTTP 403, Insufficient scopefeature_not_enabled— HTTP 403, Feature not enabled on this planvalidation_failed— HTTP 400, Request validation failedresource_not_found— HTTP 404, Resource not foundrate_limited— HTTP 429, Rate limit exceededquota_exhausted— HTTP 429, Plan quota exhaustedidempotency_in_progress— HTTP 409, A request with this Idempotency-Key is still in progressinternal_error— HTTP 500, Internal server error