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

# idempotency_key_required

> Idempotency key required: HTTP 400 from the Rask API v3. What it means, what to do and which operations return it.

| Status | `retry` | `recommendation` |
| - | - | - |
| 400 | `none` | `fix_request` |

## What happened

Idempotency key required. For example: This operation starts work or spends credits and needs an Idempotency-Key header.

## What to do

Send an Idempotency-Key header (a UUIDv4) and reuse the same value when you retry this request.

`fix_request`: change the request or its inputs; sent unchanged it fails again.

`none`: do not retry the request unchanged.

## Example

```json theme={null}
{
  "type": "https://docs.api.rask.ai/errors/idempotency_key_required",
  "title": "Idempotency key required",
  "status": 400,
  "detail": "This operation starts work or spends credits and needs an Idempotency-Key header.",
  "instance": "urn:uuid:7d5c0e9a-3f1b-4c2e-9a8d-6b4f2e1c0d93",
  "code": "idempotency_key_required",
  "retryable": false,
  "retry": "none",
  "recommendation": "fix_request",
  "hint": "Send an Idempotency-Key header (a UUIDv4) and reuse the same value when you retry this request.",
  "errors": []
}
```

## Operations that return it

* [completeUpload](https://docs.api.rask.ai/operations/completeUpload.md)
* [createDub](https://docs.api.rask.ai/operations/createDub.md)
* [createExport](https://docs.api.rask.ai/operations/createExport.md)
* [createFileRestore](https://docs.api.rask.ai/operations/createFileRestore.md)
* [createLipsync](https://docs.api.rask.ai/operations/createLipsync.md)
* [createLocalization](https://docs.api.rask.ai/operations/createLocalization.md)
* [createOnscreen](https://docs.api.rask.ai/operations/createOnscreen.md)
* [createProject](https://docs.api.rask.ai/operations/createProject.md)
* [createProjectCopies](https://docs.api.rask.ai/operations/createProjectCopies.md)
* [createSegment](https://docs.api.rask.ai/operations/createSegment.md)
* [createVoiceClone](https://docs.api.rask.ai/operations/createVoiceClone.md)
* [generateSegments](https://docs.api.rask.ai/operations/generateSegments.md)
* [importMedia](https://docs.api.rask.ai/operations/importMedia.md)
* [importTranscript](https://docs.api.rask.ai/operations/importTranscript.md)
* [restoreTranscriptVersion](https://docs.api.rask.ai/operations/restoreTranscriptVersion.md)
* [resumeJob](https://docs.api.rask.ai/operations/resumeJob.md)
* [retranslateSegments](https://docs.api.rask.ai/operations/retranslateSegments.md)


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