Skip to content

Notification destinations and events

Dockt works in the background. Evaluations run after your request returns, documents take time to process, and new Decisions can replace earlier results while work is open: a document expires, a registry answers differently, or a Policy changes. Events tell your backend when that happens, so you don’t have to poll.

A notification destination is a webhook endpoint in your system. It has a URL, the event types it receives, and an enabled setting:

{
"object": "notification_destination",
"id": "whd_1Bc4",
"url": "https://platform.example.com/dockt/webhooks",
"event_types": ["decision.created", "document.processed", "document.failed"],
"enabled": true,
"created_at": "2026-10-22T09:00:00Z",
"updated_at": "2026-10-22T09:00:00Z"
}

Register one with POST /v1/notification-destinations. The response includes signing_secret once. Store it right away: Dockt never returns it again.

Event When data
decision.created A new Decision for an Assignment or Engagement. The Decision’s ID, result and summary, its target (assignment or engagement), the Workplace, Person and Company with your references, and what changed.
document.processed A Document finished processing. The Document’s ID, reference, type and status, and its owner with your reference.
document.failed Processing a Document failed. The Document’s ID, reference and error, and its owner with your reference.

Decision and document events include your references when the records have them. Otherwise, route by the Dockt IDs.

decision.created is the one event to handle for results. It covers both kinds of work and every reason a Decision changes: a new Assignment or Engagement, a document, a registry answer, a Policy change, or the passage of time. A new Decision is created only when the result, requirements, findings or input requests change.

changed_requirements and changed_findings say what differs from the work’s previous Decision. On the first Decision, everything is listed. Use these lists to decide what needs another review, then read the full Decision. They are not a complete field-by-field diff: requirement messages or accepted document types can change without appearing in changed_requirements, and an existing finding’s message can change without appearing in changed_findings.

Event payloads

  • Dockt signs every delivery with the destination’s secret. Verify the signature before you trust an event.
  • Delivery is at least once and unordered. Deduplicate by event ID.
  • Any 2xx response acknowledges the event. Other responses and timeouts are retried with exponential backoff for up to 24 hours.
  • A disabled destination receives nothing. Events from while it was disabled are not sent to it later.

Events are a signal. The API is the source of truth: fetch the Decision or Document before an important action, and reconcile with API reads if your endpoint was unavailable.

Operation Call
Register a URL and its event types POST /v1/notification-destinations
List, read GET /v1/notification-destinations, GET /v1/notification-destinations/{id}
Change the URL, event types, or enable or disable it PATCH /v1/notification-destinations/{id}
Remove it DELETE /v1/notification-destinations/{id}
Rotate the signing secret POST /v1/notification-destinations/{id}/rotate-secret
Send a test event POST /v1/notification-destinations/{id}/test

The URL must be a public HTTPS endpoint on port 443, without credentials or a fragment.

Receive webhooks