> ## Documentation Index
> Fetch the complete documentation index at: https://docs.particle.pro/llms.txt
> Use this file to discover all available pages before exploring further.

# idempotency_key_reused

> The Idempotency-Key was already used for a different request

| | |
| - | - |
| **HTTP status** | `422 Unprocessable Content` |
| **Error code** | `idempotency_key_reused` |
| **Resolve action** | `use_new_idempotency_key` |

## What happened

The request carried an `Idempotency-Key` that was first sent with a different request: a different body, path, or query string. A key belongs to the one request it was first sent with, so this request did not run. The first request is unaffected.

## How to fix

Mint a new key for each new write, and resend a key only to retry the identical request. If you meant to retry, resend the body exactly as you first sent it rather than rebuilding it, since the bytes are compared. See [Idempotent requests](/idempotency).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.