Add an https URL in Settings → Webhooks and Docreel posts an event to it whenever a guide changes. Use it to post in Slack, open a ticket when a guide breaks, or refresh your help center’s cache.
Events
| Event | Sent when |
|---|---|
run.finished | A draft or recording ends, done or failed. |
version.published | A recording made a new live version. The stable links now serve it. |
step.broken | A step no longer works. The previous version stays live. Steps after it are skipped and don’t send their own event. |
A recording sends run.finished first, then version.published or step.broken. Send test event in Settings sends a ping.
Payload
{
"id": "evt_6f1c0b0a9d2e4c7f8a1b2c3d4e5f6a7b",
"type": "step.broken",
"createdAt": "2026-12-02T18:29:41.000Z",
"data": {
"guide": { "id": "cmx6c3nwg0000k2kpnij5aqo5", "title": "Invite a teammate with the Editor role", "status": "broken" },
"run": { "id": "cmx6...", "kind": "record", "status": "done", "counts": { "changed": 0, "healed": 0, "broken": 1 } },
"step": { "number": 2, "intent": "Open the invite form", "narration": "Click Invite teammate to open the invite form.", "error": "Could not find \"Open the invite teammate dialog\" on the page any more" },
"liveVersionId": "cmx6..."
}
}| Event | data |
|---|---|
run.finished | run, guide |
version.published | guide, version (shaped like liveVersion in Get a guide) |
step.broken | guide, run, step, liveVersionId |
guide and run have the same fields as in the REST API.
Headers
| Header | |
|---|---|
Docreel-Event | The event type. |
Docreel-Delivery | The event id, the same on a retry. Use it to skip duplicates. |
Docreel-Signature | t=<unix seconds>,v1=<hex signature> |
Verify the signature
The signature is an HMAC-SHA256 of the timestamp, a dot and the raw request body, keyed with your signing secret (whsec_..., in Settings). Compare it in constant time, and reject events older than five minutes.
import crypto from 'node:crypto'
export function verify(rawBody, header, secret) {
const parts = Object.fromEntries(header.split(',').map(p => p.split('=')))
const expected = crypto.createHmac('sha256', secret).update(`${parts.t}.${rawBody}`).digest('hex')
const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300
return fresh && crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1 || ''))
}import hmac, hashlib, time
def verify(raw_body: bytes, header: str, secret: str) -> bool:
parts = dict(p.split("=", 1) for p in header.split(","))
expected = hmac.new(secret.encode(), f"{parts['t']}.".encode() + raw_body, hashlib.sha256).hexdigest()
return abs(time.time() - int(parts["t"])) < 300 and hmac.compare_digest(expected, parts.get("v1", ""))Verify against the raw body exactly as received, before parsing the JSON.
Delivery
Answer with any 2xx within 10 seconds. Docreel tries twice. Settings shows the last delivery’s status code. New secret replaces the secret at once, so update your endpoint right after.