# idempotency_conflict

HTTP status 409. This Idempotency-Key was already used with a different request, or that request is still running.

## Fix

Use a new Idempotency-Key for a new request, or retry the identical request in a few seconds.

## More

An `Idempotency-Key` is remembered for 24 hours. The same key with the same request returns the first response and sends nothing; the same key with a different request is refused.

## What it looks like

```json
{
  "error": {
    "type": "idempotency_conflict",
    "message": "This Idempotency-Key was already used with a different request, or that request is still running.",
    "fix": "Use a new Idempotency-Key for a new request, or retry the identical request in a few seconds.",
    "docs_url": "https://authtext.com.au/docs/errors/idempotency_conflict.md",
    "request_id": "req_01JD3XA7Q2M7Q8R5T6V1W0XYZA"
  }
}
```

The `message` and `fix` can be more specific than shown here. `type` never changes, so branch on that. Quote the `request_id` if you ask for help.

All errors: [errors](../errors.md).
