Definition
Idempotency key: A unique value sent with a request so that, if you retry it after a network error, the action still happens only once.
Also known as: Idempotency-Key, idempotent request
Network errors are a fact of life: a request may have reached the other side and been processed while its response was lost on the way back. The caller cannot tell which. If it sends the request again, the same message may go out twice or the same payment may be taken twice. If it doesn't, the action may never have happened.
An idempotency key removes that doubt. The caller creates a unique value for each logical action and puts it in a request header. The server processes the first request with that key and stores the result; when a retry arrives with the same key, it does not repeat the action but returns the stored result. If the same key arrives with a different request body, the server rejects it as an error, so two different actions are never merged by mistake.
The Idempotency-Key header was written up as a draft in the IETF's HTTP API working group, and many payment and messaging APIs follow similar rules. Deriving the key from business data such as an order number makes it easy to produce the same value again when you retry. Our post on idempotent sends covers which errors to retry and how.
Example
An order system sends a shipping notice, but the connection drops before the response arrives. The system sends the same request again with the same Idempotency-Key: order-1001-shipped. The service recognizes the key and returns the result of the first send; the customer gets one message.
In UPPU
In UPPU, an Idempotency-Key is required when you send a message: retry safely with the same key and the same body, and no duplicate goes out. More on the developer page.
Sources
Last checked: 22 October 2026
- The Idempotency-Key HTTP Header Field (IETF draft) (accessed 22 October 2026)