Idempotency
Retry creates and sends safely with an Idempotency-Key header.
Early access
The REST API, webhooks and embedded signing are open to accounts in early access. If Settings, Developers is not in your account yet, write to contact@docudetect.com. What these pages describe can still change; breaking changes are announced on this site first.
Calls that make a document or email someone take an Idempotency-Key header: making a draft, using a template, sending, reminding and canceling. The reference marks each one.
curl -X POST "https://docudetect.com/api/public/v1/documents/$DOCUMENT_ID/send" \
-H "Authorization: Bearer $DOCUDETECT_API_KEY" \
-H "Idempotency-Key: 6f1b2c9e-4d1a-4f7e-9a51-0c3e2b7d8f10"- The key is any string of 1 to 255 printable ASCII characters. A UUID per operation is a good choice.
- A retry with the same key and the same body gets the first call's answer, with
Idempotent-Replayed: true, instead of acting twice. - The same key with a different body is
422 idempotency_mismatch. - While the first call is still running, a retry gets
409 idempotency_in_progresswithRetry-After. - A refused call (any 4xx) leaves the key free: fix the request and retry with the same key.
- A call that started and then failed (a 5xx) keeps its answer. Read the document before you repeat the action.
- Keys are kept for 24 hours, per API key.