Idempotency key
An idempotency key is a unique value, sent in a request header, that makes a retry safe. If the same key arrives again within the retention window, the API returns the stored response from the first request instead of creating another resource or moving money twice. It is how an integration recovers from timeouts and network failures without duplicating a payment.
By Nikhil Srinivasan, Cofounder & CEO
Generate a fresh key for each logical operation, such as a UUID, and reuse it only when retrying that same operation. Reusing a key with a different request is an error, not a way to update the first one.
Use keys on requests that create or move something, such as transfers and quotes. Read requests do not need them. Webhook handlers benefit from the same idea, using the event identifier to ignore duplicate deliveries.
Frequently asked questions
What happens if I reuse a key with a different request?
The API rejects it as a conflict rather than treating it as the original. Use a new key for each distinct operation.
Do read requests need an idempotency key?
No. Keys protect operations that create or move something. Reads are safe to repeat.
See it on your own flows.
A 30-minute walkthrough of a live account and the screening record behind each payment.
Ask an AI about Idempotency keyChatGPTClaudePerplexityGeminiGrok