SDK reference
Webhooks
dc.webhooks — subscriptions, deliveries and signature verification.
| Call | Route |
|---|---|
events() | GET /webhooks/events |
create(body) (answers signing_secret once) · list() · get(id) · update(id, body) · delete(id) | /webhooks |
test(id) · rotateSecret(id) | POST /webhooks/:id/test, /rotate-secret |
deliveries(id) · delivery(id, deliveryId) · retry(id, deliveryId) | /webhooks/:id/deliveries |
verify(rawBody, headers, secret, { toleranceSeconds? }) | No request: checks the signature and returns the event |
verify takes the raw body (a string or a Buffer), not parsed JSON. It throws a
DidConnectError with code WEBHOOK_SIGNATURE_INVALID or WEBHOOK_TIMESTAMP_OUT_OF_RANGE.

