Every event, kept in order

Each event is recorded once per workspace whether or not a webhook is listening, with the same evt_ id and body a webhook carries. Your integration can poll the feed, pick up where it left off after an outage, and send any stored event to your webhooks again.

The Events tab under API and keys in DocuFlow: recent events such as document.received, document.extracted, document.needs_review, document.approved and document.exported, each with its evt_ id, the document it concerns and when it happened.

Poll it on
your own clock

An integration behind a firewall cannot accept an inbound webhook, but it can read the feed. Each page of events comes back with a cursor that says where to resume, even when the page is empty, so a caught-up poller keeps its place. When more events were already waiting the response says so, and the poller asks again at once instead of sleeping.

Catch up after
an outage

A webhook endpoint that was down misses whatever was sent while it was down. A poller that was down resumes from the last event it handled, because the feed holds everything from the last 30 days in the order it happened. A consumer offline longer than that reconciles from the documents themselves, which the API lists by status and date.

Replay any event
to your webhooks

Any stored event can be sent to your webhooks again exactly as it was, byte for byte, even after its delivery record is gone. Deliveries are signed with an HMAC over a timestamp and the body, so a replayed event is verified the same way as the original and your handler can treat the evt_ id as its idempotency key.

Included

Eventsreceived, extracted, needs review, approved, rejected, exported and failed
Same body everywherethe feed, a webhook delivery and a replay carry the same evt_ id and payload
Cursor pagingresume from the last event you handled, never from a timestamp guess
Signed webhooksHMAC over a timestamp and the body, stale deliveries refused by the SDK
From the terminaldocuflow events --follow reads the log as it grows
Local testingdocuflow listen --forward-to sends signed events to a handler on your machine

The specifics

Retention30 days of events per workspace
Deliveryat least once; use the evt_ id to ignore a repeat
Orderevents are returned in the order they were recorded
Webhook handlersrespond within 15 seconds; a handler that throws is retried
Docsthe event log and webhooks guides cover payloads, retries and verifying signatures by hand

Wire DocuFlow into your systems this week

A working session on your own documents: one queue, your fields, your rules, and a count of what would have gone straight through.