Event catalog
Every document event a webhook can subscribe to, generated from the event log's catalog.
Source: packages/api/src/constants/document-events.ts, packages/api/src/constants/webhooks.ts. 35 event types.
Subscribe to a list of these names, or to ["*"] for every event, including ones added later. Each delivery's body is described in Payloads; data carries ids, statuses, counts and delivery outcomes only.
Sending and signing
| Event | When |
|---|---|
document.sent | The document was sent for signing; data.delivery says whether the email went out. |
document.viewed | A signer opened the signing page for the first time. |
document.signed | A signer signed. |
document.completed | Everyone has signed (or the owner finished it) and the completed PDF exists. |
document.declined | A signer declined to sign. |
document.canceled | The owner canceled the signing request. |
document.expired | The signing link expired before everyone signed. |
document.reminded | A signer was reminded; data.trigger is manual or auto. |
document.email_bounced | An invitation or reminder email could not be delivered. |
Signers and steps
| Event | When |
|---|---|
document.step_started | A step of a several-signer document started; data.step names it. |
document.signer_activated | A signer's turn started and their link was made; data has signerId, step, delivery and any refusal code. |
document.link_renewed | An expired signing link was replaced with a new one and sent again. |
document.link_requested | A signer whose link expired asked the sender for a new one (the owner is emailed once a day at most). |
document.recipient_changed | The signer (name or email) was changed: on a draft, or after sending (data.after "sent": a new link went to the new address; data.name, data.email say which changed, data.delivery the email outcome). |
document.reminders_paused | The signer paused automatic reminders from a reminder email; manual reminders still go out. |
document.reminders_resumed | The signer turned automatic reminders back on. |
document.cancel_notified | The signer, who had been emailed a link, was told the document was canceled; data.delivery says whether the email went out. |
document.expiry_extended | The owner moved a several-signer document's expiry later; data.wasExpired says whether it had expired. |
document.in_person_started | The owner handed their device to signers who are with them and locked their account on it; data.signerIds names them in order (document.signed then carries data.inPerson). |
document.in_person_ended | Signing in person ended and the device went back to the owner; data.reason is signed, stopped, not_me, idle, declined or closed, data.signed counts who signed. |
document.embedded_session_opened | A signer opened a one-time embedded signing link inside the sender's app; data has signerId and origin (the page that framed it). document.signed then carries data.embedded. |
Drafts and changes
| Event | When |
|---|---|
document.created | A draft was created from a PDF (upload, connector or email-in). |
document.duplicated | This document was made as a copy of another; data.fromDocumentId names it. |
document.signers_changed | Signers, steps or copies were changed on a draft; data has the counts. |
document.signers_suggested_accepted | The owner accepted the signers detection suggested on a draft; data has the signer, step and assigned-field counts. |
document.source_replaced | The draft's PDF was replaced with one of the same pages. |
document.held_for_review | Sending was held for review because the title looked like a scam. |
document.reopened | A sent or canceled document went back to being a draft. |
document.deleted | The document was deleted. |
document.copy_emailed | The owner emailed a copy of the completed document. |
document.verified | Someone checked the completed document on /verify; data.by is id or file, ip is a keyed hash (once a day per address). |
Approvals
| Event | When |
|---|---|
document.approval_requested | An approval rule held the send and emailed the approver a one-time link; data.ruleId names the rule. |
document.approved | The approver approved the send; the document was then sent through the usual checks. |
document.sent_back | The approver sent the document back to its draft (their note is on the approval request, not here). |
document.approval_withdrawn | The owner withdrew an approval request; the document stays a draft. |
Not sent to webhooks
document.link_copied: The owner took the link of a signer whose email bounced, to send it by hand; data.signerId names the signer.document.in_person_unlocked: The owner unlocked their account on the device after signing in person; data.by is password, code or sign_in.
These stay in the document's history and the account's audit log only.