Skip to main content

Subscribe to terminal events

In Settings, save a public HTTPS webhook URL and copy the signing secret when shown. Store it on the receiving server. The 1.1 build also accepts a per-job webhook with its own url and secret. DocKiln rejects redirects during delivery.

Verify before parsing

Capture the raw request body as a Buffer before JSON middleware transforms it. This Node.js helper takes the incoming Node HTTP headers and enforces a five-minute clock tolerance. Pass the secret associated with this subscription.

Handle retries once

Persist the verified event ID with a unique constraint and enqueue the business action in the same database transaction. Return a 2xx response after that transaction commits, including when the event was already accepted. This lets the sender retry a lost acknowledgement without sending your customer a second email. The sender signs each attempt. The event ID stays stable. After a failed attempt, retry delays are 5 seconds, 30 seconds, 2 minutes and 10 minutes. After the fifth failure, delivery stops. Check endpoint and delivery history from a signed-in session.