How webhooks work
When an event occurs in Documenso (such as a document being signed or completed), the system:- Identifies all webhooks subscribed to that event
- Constructs a JSON payload with event details
- Sends an HTTP POST request to each webhook URL
- Includes a secret header for verification
- Logs the response for debugging
Use cases
Webhooks are useful for:- Workflow automation - Trigger actions in your system when documents are signed
- Real-time notifications - Alert users or systems immediately when events occur
- Data synchronization - Keep external databases updated with document status
- Analytics and monitoring - Track document lifecycle events
- Integration - Connect Documenso with other tools (CRM, project management, etc.)
Available events
Documenso supports the following webhook events:document.created
Triggered when a new document is created
document.sent
Triggered when a document is sent to recipients
document.opened
Triggered when a recipient opens a document
document.signed
Triggered when a recipient signs a document
document.completed
Triggered when all recipients have signed
document.rejected
Triggered when a recipient rejects a document
document.cancelled
Triggered when a document is cancelled
recipient.expired
Triggered when a recipient’s signing link expires
Webhook payload structure
All webhook requests include:Security
Documenso includes webhook security features:- Secret verification - Each webhook includes an
X-Documenso-Secretheader - HTTPS only - Production webhooks should use HTTPS endpoints
- Request logging - All webhook calls are logged with response details
Retry behavior
Documenso webhook delivery:- Expects a 2xx status code to consider delivery successful
- Does not automatically retry failed webhooks
- Logs all webhook calls for manual inspection and retry
Next steps
Setup webhooks
Configure your first webhook endpoint
Event reference
Explore all available events and payloads
Security
Implement webhook signature verification
