> ## Documentation Index
> Fetch the complete documentation index at: /docs/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 in the last 24 hours. HTTP 422, code IDEMPOTENCY_KEY_REUSED.

```json theme={null}
{
  "success": false,
  "error": "This Idempotency-Key was already used for a different request in the last 24 hours. Send the same request to get its original response, or use a new key for a new request.",
  "code": "IDEMPOTENCY_KEY_REUSED",
  "documentationUrl": "https://www.importly.io/docs/errors/idempotency-key-reused"
}
```

An `Idempotency-Key` belongs to the first request that started a job with it. For 24 hours, sending that key again with the same endpoint and the same body returns the first response, and sending it with anything else gets this `422`. Nothing is queued or charged.

## Reasons and how to fix

### One key for several requests

Each job you start needs its own key. Generate a new one, such as a UUID, for every new request, and reuse it only when you resend that exact request after a timeout or a network error. See [Retry safely with an idempotency key](/docs/error-handling.md#retry-safely-with-an-idempotency-key).

### The retry changed the body

A retry has to send the same body as the first attempt: the same `url`, options and `webhookUrl`. The order of the fields doesn't matter. If you meant to change something, it's a new request: send it with a new key.

### The same key on another endpoint

A key used on `/import` can't be used on `/metadata` or `/transcribe` within 24 hours. Use a new key per request.


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