Idempotency-Key header on mutation requests when you may need to retry the same operation.
POST, PUT, PATCH, and DELETE requests when a key is present.
Key rules
- Keys are trimmed before use.
- A key must not be empty.
- A key can contain at most 256 Unicode characters.
- Reuse the same key only for the same logical request.
What gets matched
Dugble binds an idempotency key to the authenticated credential scope and request fingerprint. The request fingerprint includes the HTTP method, route path, query string, and request body. If the same key is reused with a different request, Dugble returns409 CONFLICT.
Replayed responses
When the original request completed successfully, a later request with the same idempotency key and identical request fingerprint receives the stored response instead of executing the operation again. Dugble stores idempotency records for 24 hours by default.Requests still processing
A request holds a processing lock while it is running. The default lock window is 30 seconds. If another request with the same key arrives while the first is still processing, Dugble returns409 CONFLICT.