Webhook Deliveries & Retries
How to read DocuClipper's webhook delivery log and how automatic retries work.
Last updated
DocuClipper logs every webhook delivery attempt so you can confirm what your endpoint returned and when. Retries are automatic - there is no manual "retry" or "replay" button - so the delivery log is a diagnostic view, and idempotency is how you recover from a missed event.
Viewing deliveries
The delivery log is available to account admins, since deliveries carry the extracted data of everyone on the account (see Who can manage webhooks). Go to Settings > API & Webhooks and click See Events next to a webhook. Filter the list by All, Pending, Success, or Failed. Failed shows every delivery that did not go through: attempts that are still being retried and deliveries that ran out of attempts. Each row shows:
- Status:
Pending- not delivered yet.Success- your endpoint answered with a 2xx status.Failed- the last attempt failed and DocuClipper will retry it automatically.Dead letter- all 3 attempts failed. DocuClipper does not retry this event again.
- Response: the HTTP status code your endpoint returned, plus the size and a SHA-256 hash of the response body. The response body itself is not stored or displayed - the hash is there to confirm two responses were identical, not to read them back.
- Created: when the attempt was made.
To generate a delivery you can inspect, use the Test Webhook dropdown (top right) and choose Send Test: Bank Statement or Send Test: Invoice. A test delivery appears in the log with whatever status your endpoint returned.
Success and failure
A delivery is successful when your endpoint returns any 2xx status within 10 seconds. Any other status (including 3xx redirects and 5xx errors) or a timeout counts as a failure and triggers the retry policy.
Retry policy (automatic)
Failed deliveries are retried automatically - up to 3 attempts total (the initial delivery plus 2 retries) with exponential backoff from a 30-second base:
- Attempt 1: the initial delivery.
- Attempt 2: ~30 seconds after the first failure.
- Attempt 3: ~60 seconds after the second failure.
After the third attempt fails, the delivery stops retrying and is marked Dead letter. There is no manual re-delivery or replay in the UI, so an endpoint has about a minute and a half to recover before an event is given up on.
Failure alert emails
When the last 3 deliveries to a webhook have all failed, DocuClipper emails the account admins with the endpoint, the event type and the status code it returned. You get at most one alert per webhook per day, so a webhook pointed at an endpoint you have retired or that is down for a while does not fill your inbox. If you no longer use an endpoint (an old staging or test URL, for example), delete the webhook from its gear menu in Settings > API & Webhooks so its events stop being sent there.
Automatic disabling
If a webhook's endpoint keeps failing, DocuClipper turns the webhook off so it stops sending events nobody receives. A webhook is disabled when its last 20 deliveries in a row all ended as Dead letter and those failures span more than 24 hours. A short outage does not trigger it: a busy account can fail 20 deliveries in an hour while an endpoint is briefly down, and the webhook stays on as long as the failures have not lasted a day.
When this happens:
- The account admins get one email naming the endpoint and the reason.
- In Settings > API & Webhooks the webhook shows a Disabled badge and a notice with the date and the reason. The same notice appears at the top of its delivery log.
- No new events are sent to the endpoint, and test sends are unavailable until it is turned back on.
Once your endpoint accepts requests again, click Re-enable in the notice. New events are sent from then on, and the count of consecutive failures starts over from zero. Events that failed while the endpoint was down are not resent (see below for how to recover them).
Webhooks turned off when an account changes owners
When an account set up without a login of its own is claimed by the owner of its email address (the first time a password is set through an emailed link), DocuClipper turns off every webhook on the account. Whoever used the account before may have chosen those URLs, and a webhook sends every converted document to its URL.
In Settings > API & Webhooks such a webhook shows a Disabled badge and a notice saying it was turned off when the account changed owners, with its full URL and a request to check that URL is yours before turning it back on. If it is an endpoint you control, click Re-enable and confirm. If you do not recognize it, delete the webhook from its gear menu instead.
A webhook that is off for any other reason without a recorded cause shows the same advice to check its URL, and Re-enable asks you to confirm before events are sent to it again.
Turning a webhook back on through the API
Through the API, a disabled webhook has enabled: false with disabledReason and disabledAt set: disabledReason is ownership_change for a webhook turned off when the account changed owners, and otherwise a sentence explaining the automatic disabling. POST /api/v1/agent/webhooks/:id/enable turns it back on, and a test send to a disabled webhook (POST /api/v1/agent/webhooks/:id/test) answers 409. The delivery log endpoint (GET /api/v1/agent/webhooks/:id/deliveries) takes status=pending, success, failed (retrying and dead-lettered) or dead-letter.
Recovering a missed event (idempotency)
Because retries are automatic and finish within a couple of minutes, the reliable way to recover from a permanent failure is to make your endpoint idempotent and fix it before the next event fires:
- Every delivery - including retries - carries the same
X-DocuClipper-Event-Idheader. Record IDs you've already processed and no-op on repeats. - Return a 2xx as soon as you've durably queued the event, then do slow work asynchronously, so a slow handler doesn't time out and fail.
- If you've already missed an event, re-run the extraction (or fetch current job data via the API) rather than waiting for a re-delivery.
See Idempotency in the overview for handler examples.
Debugging tips
- If your endpoint consistently returns 5xx, the delivery log confirms the status code and timing, but not your response text - reproduce locally against the test payload to see the body your handler received.
- Verify the signature exactly as shown in Verifying signatures; a 401 in the log usually means a body-encoding mismatch.
- For local development, tunnel with a service like ngrok and point the webhook at the tunnel URL.