Webhooks
Get an HTTPS call for every change to your documents, signed so you can trust it.
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.
A webhook endpoint is an HTTPS address of yours that DocuDetect calls when something happens to a document in your account: it was sent, opened, signed, completed, declined, canceled. Each call is a small JSON body naming the event and the document, signed with a secret only you and DocuDetect know.
Add an endpoint
In the app: Settings, Developers, Webhooks, then Add webhook. Or with the API, with a key that has webhooks:manage:
curl -X POST "https://docudetect.com/api/public/v1/webhook-endpoints" \
-H "Authorization: Bearer $DOCUDETECT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/webhooks/docudetect","events":["document.completed","document.declined"]}'urlmust be a publichttps://address on the standard port. Local and private addresses are refused.eventsis a list from the event catalog, or["*"]for every event, including ones added later.- The answer includes the signing secret (
whsec_…). The API shows it only in this answer. Store it with your other secrets; you need it to verify deliveries.
Free and Extension accounts can have 1 endpoint; Pro accounts up to 10. An endpoint added with an API key is turned off when that key is revoked or expires.
The payload
{
"id": "evt_6752f0c4a1b2c3d4e5f60718",
"object": "event",
"apiVersion": 1,
"type": "document.signed",
"createdAt": "2026-12-06T15:04:05.000Z",
"document": { "id": "665f1c2e9b1d4a0012345678" },
"actor": { "type": "signer", "signerId": "s1" },
"data": {},
"test": false
}| Field | Meaning |
|---|---|
id | The event id. The same on every retry and when you send it again by hand: use it to drop duplicates. |
object | Always event. |
apiVersion | The payload version, 1. |
type | One of the event types. |
createdAt | When it happened (ISO 8601, UTC). |
document.id | The document. Read it with Get a document for its current state. |
actor | Who did it: owner, signer (with signerId), system, assistant, api or automation. |
data | Event details: ids, statuses, counts and delivery outcomes, never text a person wrote. |
test | true only for Send test event. |
The payload is deliberately thin. It never carries field values, answers, titles, names, email addresses or links. Fetch the document with the API when you need more.
Answer quickly
Answer any 2xx within 10 seconds to mark the delivery done, then do the work. Anything else is retried: see Delivery and retries. Events can arrive out of order and more than once, so key your processing on id and read the document for its current state.
In the app
Each endpoint has a page with its delivery log, Send test event, Send again on any delivery, a switch to turn it off, and secret rotation. After a rotation, the old secret also signs every delivery for 24 hours, so you can deploy the new one without missing anything.