Skip to content
Support

What if I reuse an idempotency key with a different body?

Owner, AdminLast checked 24 November 20261 min readArticle ID: developers-reuse-key
On this page

You get 422 idempotency_key_reused. Use a new key for each different write.

You get 422 with error.code of idempotency_key_reused: the key was already used for a different request (another method, URL or body).

The same key with the same request returns the stored answer with Idempotent-Replayed: true, so nothing is done twice. Keys belong to your app, and answers are kept for 24 hours. Use a new key for each distinct write, and the same key only when you retry that write. After a 422, fix the request and send it with a new key.

See My request fails with idempotency_key_reused and Safe retries with idempotency keys.

In this section