Add webhook endpoints in Settings → API (or create them programmatically with POST /v1/webhooks).

Events

Usedocs sends signed JSON payloads for a set of built‑in events. The exact list of events is documented on the Webhook Integration page, but the current implementation includes at least the following event:

  • usedocs.draft.publish – emitted when a draft is published via the Usedocs publishing flow.

(Additional events such as article changes, edit proposals, handoffs, and lead alerts are also available; see the integration page for the full list.)

Delivery format

Each webhook delivery is a POST request with a JSON body that contains the event data. The request includes a single verification header:

x-usedocs-signature: sha256=<hex>

The <hex> value is the HMAC‑SHA256 of the raw request body, computed with the secret you configured for the endpoint. If the secret is empty, the header is omitted.

Delivery logging and retries

All webhook deliveries are logged with their status and timing. If a delivery fails (e.g., the endpoint does not respond within a reasonable time or returns a non‑2xx status), Usedocs will retry the request. The exact retry schedule is managed internally and may change; you can rely on the delivery log to see each attempt and its outcome.

Handoff and lead alerts

Chat‑tool handoff and lead alerts have their own dedicated webhook integrations. See the Webhook integration page for details.