---
title: "Idempotency key"
description: "A unique value sent with a request so that retrying it returns the original result instead of repeating the action."
author: "Nikhil Srinivasan, Cofounder & CEO"
updated: "2026-11"
canonical: "https://infinite.net/resources/learn/glossary/idempotency-key"
---

# 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.

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.

## Where it fits on Infinite

- [Choosing a payment API](https://infinite.net/resources/learn/guides/choosing-a-stablecoin-payment-api.md)
- [Rails](https://infinite.net/platform/transfer-routes)
- [Cross-border payments](https://infinite.net/solutions/crossborder-payments)

## See also

- [Transfer](https://infinite.net/resources/learn/glossary/transfer.md)
- [Webhook](https://infinite.net/resources/learn/glossary/webhook.md)
- [FX quote](https://infinite.net/resources/learn/glossary/fx-quote.md)
