Idempotency
ConceptsIdempotency means performing an operation multiple times produces the same result as performing it once. Idempotent operations are safe to retry: if a request fails or times out, retrying with the same idempotency key avoids duplicate processing.
When Idempotency Matters
- Upload — Retrying document upload with the same idempotency key avoids duplicate documents
- Extraction — Re-running extraction with the same inputs returns the same outputs
- Webhooks — DocLD may retry webhook delivery; your handler should be idempotent (e.g., deduplicate by event ID)
Related Concepts
Idempotency enables safe retries for API calls and webhook handlers. Jobs and batch processing benefit when operations are idempotent.