Use an Idempotency-Key header to safely retry write operations and avoid duplicate resource creation on network timeouts.Documentation Index
Fetch the complete documentation index at: https://docs.qoder.com/llms.txt
Use this file to discover all available pages before exploring further.
Header format
Add anIdempotency-Key header to write operations (POST / PUT / DELETE):
Duplicate request behavior
| Scenario | Server response |
|---|---|
| Same key + same body | Returns the original response without re-executing |
| Same key + different body | 409 conflict_error: "Idempotency key reused with a different request body." |
| No idempotency key | Executes every time, potentially creating duplicate resources |
Lifecycle
| Property | Description |
|---|---|
| Retention | 24 hours after first use |
| After expiry | The same key is treated as a new request |
| Scope | Per PAT (account) |
Example
Strongly recommended when creating critical resources (Agents, Sessions, Environments). Automation scripts issuing bulk writes should generate a unique key per request.