idempotency_key_reused
422 · The Idempotency-Key was used for a different request.
What it means
Section titled “What it means”The Idempotency-Key sent was already used, within the last day, with a different request (another path, or another body). A key stands for one change: repeating it returns that change’s answer, so it can’t be used for another.
How to put it right
Section titled “How to put it right”Make a new key for each change (a random UUID is usual), and reuse a key only to retry exactly the same request after a failure or a timeout.
What the response looks like
Section titled “What the response looks like”{ "type": "https://docs.farkitect.com/api/errors/idempotency-key-reused", "title": "The Idempotency-Key was used for a different request", "status": 422, "detail": "A sentence about this request: what was wrong, and what would be accepted.", "code": "idempotency_key_reused", "requestId": "req_46075e91719e4bd0a9a4"}Branch on code, not on title or detail, which may be reworded. See Errors for how every error is shaped.