Skip to content
Start free

Webhook Events

Open in ClaudeOpen in ChatGPT

When you create a webhook you choose which events it should receive. Each event is named <resource>.<action> — for example, submission.processed.

Events marked Default are pre-selected when you create a webhook in the dashboard. The rest are opt-in — select them explicitly if you want them.

Webhooks you create with API v2 use version 4 payloads, which name resources as API v2 does. Two groups of events have different names in them:

Version 3 (dashboard, API v1)Version 4 (API v2)
submission_data_request.<action>signature_request.<action>
combined_submission.<action>combined_pdf.<action>

Every other event has the same name. Version 4 webhooks can’t subscribe to API token, user and integration events, because API v2 has no resources for them.

EventDescription
submission.processedWhen PDF generation completesDefault
submission.failedWhen PDF generation failsDefault
submission.declinedWhen a signer declines to sign, which cancels the submissionDefault
submission.createdWhen a submission is created
submission.updatedWhen a submission is updated
submission.expiredWhen a submission expires

A submission.expired or combined_submission.expired (combined_pdf.expired in version 4) payload is sent after expiry has cleared the data, so its metadata is empty. Match it to your records by its id.

No event is sent when a live submission starts waiting for credits (the insufficient_credits state). If it’s still waiting after 30 days, or you discard it, it moves to error and DocSpring sends submission.failed. See Credits & Rate Limits.

EventDescription
submission_data_request.sentWhen DocSpring first emails a signer their signing linkDefault
submission_data_request.viewedWhen a signature request is first viewedDefault
submission_data_request.completedWhen a signature request is completedDefault
submission_data_request.declinedWhen a signer declines to signDefault
submission_data_request.updatedWhen a signature request is updated
submission_data_request.email_bouncedWhen DocSpring’s email with a signer’s link bounces or is marked as spamDefault

submission_data_request.sent and submission_data_request.email_bounced are for the emails DocSpring sends. New webhooks get them by default. Add them to an existing webhook on the Webhooks page.

EventDescription
combined_submission.processedWhen combined PDF generation completesDefault
combined_submission.failedWhen combined PDF generation failsDefault
combined_submission.expiredWhen a combined submission expires

Combined submissions that wait for credits work the same way: no event when they start waiting, and combined_submission.failed if they expire or are discarded.

EventDescription
submission_batch.processedWhen every submission in a batch has processedDefault
submission_batch.failedWhen a batch finishes and at least one submission failedDefault
EventDescription
template.createdWhen a template is created
template.updatedWhen a template is updated
template.deletedWhen a template is deleted
EventDescription
api_token.createdWhen an API token is created
api_token.revokedWhen an API token is revoked
api_token.deletedWhen an API token is deleted
EventDescription
webhook.createdWhen a webhook is created
webhook.updatedWhen a webhook is updated
webhook.deletedWhen a webhook is deleted
EventDescription
account_integration.createdWhen an account integration is created
account_integration.updatedWhen an account integration is updated or disabled
account_integration.deletedWhen an account integration is deleted
custom_file.createdWhen a custom file is uploaded
folder.createdWhen a folder is created
folder.updatedWhen a folder is updated
folder.deletedWhen a folder is deleted
user.createdWhen a user is created without an invitation
user.invitedWhen a user is invited (sent instead of user.created)
user.updatedWhen a user is updated
user.deletedWhen a user is deleted

Beyond choosing event types, you can narrow down when a webhook fires.

The Mode setting limits a webhook to a particular environment:

  • All submissions: fire for both test and live submissions (the default).
  • Test only: only fire for test submissions.
  • Live only: only fire for live submissions.

The mode of an event is determined by the submission it relates to (test or live), even when a live API token created a test submission. Combined PDFs and custom files aren’t test or live themselves, so their events use the mode of the API token that created them: a test (development) token’s events are test events.

Template, folder, user, webhook, and integration events aren’t test or live, so they’re sent to webhooks of every mode. API token events use the mode of the token itself.

You can limit a webhook to specific resources by listing their IDs. In the dashboard, add the IDs to the API Token IDs, Template IDs, and Folder IDs fields (one ID per row). Through the API, set the api_token_ids, template_ids, and folder_ids arrays.

  • API Token IDs: only fire for events generated by one of these API tokens (submission, signature request, combined submission, submission batch, and custom file events).
  • Template IDs: only fire for events related to one of these templates (their submissions, signature requests, and template events). Matched by ID, so it keeps working across template versions.
  • Folder IDs: only fire for events related to templates in one of these folders or any of their subfolders (folder scoping is hierarchical), and for folder events about those folders and their subfolders.

Leave all three empty to receive events for everything in the account.

A scoped webhook can only subscribe to event types that at least one of its scope lists applies to. The dashboard disables the other event types, and the API rejects them with a validation error.