DocuDetectDocs

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

EventWhen
document.sentThe document was sent for signing; data.delivery says whether the email went out.
document.viewedA signer opened the signing page for the first time.
document.signedA signer signed.
document.completedEveryone has signed (or the owner finished it) and the completed PDF exists.
document.declinedA signer declined to sign.
document.canceledThe owner canceled the signing request.
document.expiredThe signing link expired before everyone signed.
document.remindedA signer was reminded; data.trigger is manual or auto.
document.email_bouncedAn invitation or reminder email could not be delivered.

Signers and steps

EventWhen
document.step_startedA step of a several-signer document started; data.step names it.
document.signer_activatedA signer's turn started and their link was made; data has signerId, step, delivery and any refusal code.
document.link_renewedAn expired signing link was replaced with a new one and sent again.
document.link_requestedA signer whose link expired asked the sender for a new one (the owner is emailed once a day at most).
document.recipient_changedThe 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_pausedThe signer paused automatic reminders from a reminder email; manual reminders still go out.
document.reminders_resumedThe signer turned automatic reminders back on.
document.cancel_notifiedThe signer, who had been emailed a link, was told the document was canceled; data.delivery says whether the email went out.
document.expiry_extendedThe owner moved a several-signer document's expiry later; data.wasExpired says whether it had expired.
document.in_person_startedThe 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_endedSigning 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_openedA 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

EventWhen
document.createdA draft was created from a PDF (upload, connector or email-in).
document.duplicatedThis document was made as a copy of another; data.fromDocumentId names it.
document.signers_changedSigners, steps or copies were changed on a draft; data has the counts.
document.signers_suggested_acceptedThe owner accepted the signers detection suggested on a draft; data has the signer, step and assigned-field counts.
document.source_replacedThe draft's PDF was replaced with one of the same pages.
document.held_for_reviewSending was held for review because the title looked like a scam.
document.reopenedA sent or canceled document went back to being a draft.
document.deletedThe document was deleted.
document.copy_emailedThe owner emailed a copy of the completed document.
document.verifiedSomeone checked the completed document on /verify; data.by is id or file, ip is a keyed hash (once a day per address).

Approvals

EventWhen
document.approval_requestedAn approval rule held the send and emailed the approver a one-time link; data.ruleId names the rule.
document.approvedThe approver approved the send; the document was then sent through the usual checks.
document.sent_backThe approver sent the document back to its draft (their note is on the approval request, not here).
document.approval_withdrawnThe 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.