|
Download data/corpus/markdown/api-idempotency.md from Prabu17/askmydocs: direct link, hf CLI and curl.
- Browser
- Download file 708 Bytes
-
https://huggingface.co/spaces/Prabu17/askmydocs/resolve/main/data/corpus/markdown/api-idempotency.md
- Command line
-
hf download hf://spaces/Prabu17/askmydocs/data/corpus/markdown/api-idempotency.md
-
curl -L -o api-idempotency.md https://huggingface.co/spaces/Prabu17/askmydocs/resolve/main/data/corpus/markdown/api-idempotency.md
708 Bytes
metadata
doc_id: api-idempotency
title: Idempotency Guide
version: 1
module: api
last_updated: 2026-09-12T00:00:00.000Z
Idempotency (#idempotency)
Write endpoints accept an Idempotency-Key header. If a request with the same key is retried, the server returns the original response without applying the change twice.
Idempotency keys are honored for 24 hours. Use UUID v4 values.
Common Headers (#common-headers)
| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer token |
| Idempotency-Key | Write ops | Prevent duplicate writes |
| X-Request-ID | No | Correlate logs; echoed in response |
| Accept-Version | No | Pin API version (default v1) |