Webhook events and delivery
A notification destination is a webhook endpoint that receives signed events. This page is the reference for its fields, every event payload, and how Dockt delivers them.
Destination
Section titled “Destination”A notification destination has these fields:
| Field | Meaning |
|---|---|
id |
whd_ identifier. |
url |
The HTTPS endpoint. |
event_types |
The events it receives: decision.created, document.processed, document.failed. At least one. |
enabled |
Whether Dockt delivers to it. Defaults to true. |
signing_secret |
Returned only on create and rotation. |
created_at, updated_at |
Creation and last-update timestamps. |
The URL must use HTTPS on port 443 with a public DNS hostname, and no credentials or fragment. Dockt doesn’t follow redirects; register the final URL.
Event envelope
Section titled “Event envelope”Every delivery is one event:
| Field | Meaning |
|---|---|
id |
evt_ identifier. Retries of the same event keep it. |
type |
The event type, equal to the X-Dockt-Event-Type header. |
created_at |
When the event happened. |
data |
The event’s content, described in Event types. |
Decision and document event references include a Dockt id and an external_ref value. external_ref is null when the record has no reference. The test event contains only the destination reference.
Event types
Section titled “Event types”decision.created
Section titled “decision.created”A new Decision for an Assignment or Engagement uses this payload shape:
{ "id": "evt_9Qa2", "type": "decision.created", "created_at": "2026-11-02T09:00:05Z", "data": { "decision": { "id": "dec_91Kp", "result": "incomplete", "summary": "1 requirement missing: Dimona registration." }, "target": { "type": "assignment", "id": "asg_6Pw3", "external_ref": "preannouncement-9031" }, "workplace": { "id": "wpl_8Tn1", "external_ref": "plant-antwerp" }, "person": { "id": "per_7Hq2", "external_ref": "worker-4821" }, "company": { "id": "cmp_3Lp9", "external_ref": "comp-77" }, "changed_requirements": ["employment_registration", "identity_document"], "changed_findings": [] }}| Field | Meaning |
|---|---|
decision |
The Decision’s id, result and summary. |
target |
The work: type is assignment or engagement. |
workplace |
The Workplace of the work. |
person |
The Assignment’s Person, or null for an Engagement. |
company |
The Assignment’s employer, or the Engagement’s Company. null for an Assignment without an employer. |
changed_requirements |
Rule codes whose status, evidence or expiring_soon differ from the previous Decision, or that started or stopped applying. |
changed_findings |
Finding codes added or removed since the previous Decision. |
On a target’s first Decision, every requirement and finding is listed. These arrays are summaries, not a complete diff. Requirement messages, accepted types, or expiry dates can change without their rule code appearing; a finding’s text can change without its code being added or removed. Read the full Decision before deciding whether a previous review still applies.
document.processed
Section titled “document.processed”A Document that finished processing produces an event like this:
{ "id": "evt_3Wd7", "type": "document.processed", "created_at": "2026-11-02T08:59:58Z", "data": { "document": { "id": "doc_2Vc8", "external_ref": null, "document_type": "passport_id", "status": "processed" }, "owner": { "type": "person", "id": "per_7Hq2", "external_ref": "worker-4821" } }}document.failed
Section titled “document.failed”Processing a Document failed. data.document.error says why, as in this example:
{ "id": "evt_5Kc1", "type": "document.failed", "created_at": "2026-11-02T08:59:58Z", "data": { "document": { "id": "doc_8Lm1", "external_ref": null, "document_type": null, "status": "failed", "error": "processing_failed" }, "owner": { "type": "person", "id": "per_7Hq2", "external_ref": "worker-4821" } }}notification_destination.test
Section titled “notification_destination.test”Sent only by POST /v1/notification-destinations/{id}/test, this event tests delivery without creating work or changing a Decision. Its data has this shape:
{ "notification_destination": { "id": "whd_1Bc4" } }Delivery headers
Section titled “Delivery headers”| Header | Meaning |
|---|---|
X-Dockt-Event-Id |
The event ID, stable across retries. |
X-Dockt-Event-Type |
The event type, equal to the body’s type. |
X-Dockt-Timestamp |
ISO 8601 timestamp included in the signed message. |
X-Dockt-Signature |
v1= followed by a lowercase hexadecimal HMAC-SHA256 digest. |
Signature
Section titled “Signature”Verify X-Dockt-Signature as HMAC-SHA256 over:
<X-Dockt-Timestamp>.<raw request body>Use the destination’s signing secret, lowercase hexadecimal encoding, the v1= prefix, and a constant-time comparison. Reject timestamps outside a five-minute window.
Delivery behavior
Section titled “Delivery behavior”- Delivery is at least once and unordered.
- Each enabled destination subscribed to the event type gets its own delivery, retried on its own.
- Retries keep the same event ID and body.
- Any
2xxresponse acknowledges the event. - Other responses and timeouts are retried with exponential backoff, starting at 30 seconds and doubling up to one hour between attempts.
- Dockt stops retrying 24 hours after the event.
- Each attempt times out after 10 seconds.
- A destination disabled before or during delivery gets nothing more for that event.
Store or queue a verified event before you acknowledge it, and deduplicate side effects by event ID.