Learn how to use webhooks to receive real-time notifications about your documents.
document.created
document.sent
document.opened
document.signed
document.completed
document.rejected
document.cancelled
document.created
, document.sent
, document.opened
, document.signed
, document.completed
, document.rejected
, document.cancelled
.X-Documenso-Secret
header of the request.Field | Type | Description |
---|---|---|
event | string | The type of event that triggered the webhook. |
payload.id | number | The id of the document. |
payload.externalId | string? | External identifier for the document. |
payload.userId | number | The id of the user who owns the document. |
payload.authOptions | json? | Authentication options for the document. |
payload.formValues | json? | Form values for the document. |
payload.visibility | string | Document visibility (e.g., EVERYONE). |
payload.title | string | The title of the document. |
payload.status | string | The current status of the document. |
payload.documentDataId | string | The identifier for the document data. |
payload.createdAt | datetime | The creation date and time of the document. |
payload.updatedAt | datetime | The last update date and time of the document. |
payload.completedAt | datetime? | The completion date and time of the document. |
payload.deletedAt | datetime? | The deletion date and time of the document. |
payload.teamId | number? | The id of the team if document belongs to a team. |
payload.templateId | number? | The id of the template if created from template. |
payload.source | string | The source of the document (e.g., DOCUMENT, TEMPLATE) |
payload.documentMeta.id | string | The id of the document metadata. |
payload.documentMeta.subject | string? | The subject of the document. |
payload.documentMeta.message | string? | The message associated with the document. |
payload.documentMeta.timezone | string | The timezone setting for the document. |
payload.documentMeta.password | string? | The password protection if set. |
payload.documentMeta.dateFormat | string | The date format used in the document. |
payload.documentMeta.redirectUrl | string? | The URL to redirect after signing. |
payload.documentMeta.signingOrder | string | The signing order (e.g., PARALLEL, SEQUENTIAL). |
payload.documentMeta.typedSignatureEnabled | boolean | Whether typed signatures are enabled. |
payload.documentMeta.language | string | The language of the document. |
payload.documentMeta.distributionMethod | string | The method of distributing the document. |
payload.documentMeta.emailSettings | json? | Email notification settings. |
payload.Recipient[].id | number | The id of the recipient. |
payload.Recipient[].documentId | number? | The id of the document for this recipient. |
payload.Recipient[].templateId | number? | The template id if from a template. |
payload.Recipient[].email | string | The email address of the recipient. |
payload.Recipient[].name | string | The name of the recipient. |
payload.Recipient[].token | string | The unique token for this recipient. |
payload.Recipient[].documentDeletedAt | datetime? | When the document was deleted for this recipient. |
payload.Recipient[].expired | datetime? | When the recipient’s access expired. |
payload.Recipient[].signedAt | datetime? | When the recipient signed the document. |
payload.Recipient[].authOptions | json? | Authentication options for this recipient. |
payload.Recipient[].signingOrder | number? | The order in which this recipient should sign. |
payload.Recipient[].rejectionReason | string? | The reason if the recipient rejected the document. |
payload.Recipient[].role | string | The role of the recipient (e.g., SIGNER, VIEWER). |
payload.Recipient[].readStatus | string | Whether the recipient has read the document. |
payload.Recipient[].signingStatus | string | The signing status of this recipient. |
payload.Recipient[].sendStatus | string | The sending status for this recipient. |
createdAt | datetime | The creation date and time of the webhook event. |
webhookEndpoint | string | The endpoint URL where the webhook is sent. |
document.created
event:
document.sent
event:
document.opened
event:
document.signed
event:
document.completed
event:
document.rejected
event:
document.rejected
event: