Yousign webhooks
Yousign webhooks are signed HTTP POST requests that Yousign, now branded Youtrust, sends to your HTTPS endpoint when a subscribed e-signature, seal, verification or workflow event happens.
How Yousign webhooks work
Webhooks push signing progress to your server, so you don't have to poll Yousign's API. A subscription names the events you want, one environment (sandbox or production) and an endpoint. Yousign's developer docs now live at developers.youtrust.com and say Youtrust throughout, but deliveries still use x-yousign- headers and the user agent Yousign Webhook Bot.
Each delivery is a JSON POST with event_id, event_name, event_time, subscription_id, subscription_description, sandbox and data. event_name says what happened, such as signature_request.done, and data varies by event. Neither the body nor a header carries a payload version.
Key facts
{raw body} The request body exactly as sent, with no timestamp. x-yousign-issued-at is outside the signature, and the body's event_time stays the same through retries.
event_id, event_name, event_time, subscription_id, subscription_description, sandbox, data Setting up Yousign webhooks
- In the app, go to API > Webhooks and click Create a webhook, then enter the endpoint, environment and events. You can also create subscriptions through the API, where
auto_retryis a required field. - Trial API accounts can only create sandbox subscriptions, and only in the app.
- Test in sandbox by triggering a test Signature Request. To reach a local server, run
npx hookdeck-cli listen 3000 yousign --path /webhooks/yousignand use its URL as the endpoint. - Yousign's webhook docs describe no way to resend a delivery by hand. Delete temporary subscriptions when you finish, because expired test URLs cause failed calls.
Delivery behaviour
1 second on the first attempt, then 10 seconds on each retry Retries up to 8 over about 4 days with auto_retry on; off, one retry after a first-attempt timeout After repeated failures may be suspended Yousign queues deliveries until the endpoint is stable and publishes no threshold Ordering not documented retries can land hours or days behind later events Known failure modes
From Hookdeck's Yousign guide →-
Slow responses count as failures
A first attempt that takes longer than 1 second fails even if it ends in a
Handle the 1-second limit →2xx. Acknowledge straight away and process the event in the background. -
Duplicate deliveries
Yousign can send the same webhook more than once, through retries or network issues. Store
Handle duplicates →event_id, which is globally unique, and skip any you've already handled. -
Failed deliveries with no retries
Yousign only runs its 8 retries when the subscription's
Retries and suspended endpoints →auto_retryistrue. With it off, one retry follows a first-attempt timeout, so set it on every subscription. -
A replay can't be rejected by age
Yousign signs only the body, so
Other Yousign limits →X-Yousign-Issued-Atcan be altered, andevent_timestays the same through retries. Neither can bound a replay, so deduplicate onevent_id.
Yousign webhook best practices
- Verify every signature. Compute it over the raw body, before parsing. Yousign warns against hashing a parsed or formatted version.
- Answer within 1 second. Store the event, acknowledge it and do the rest in a background job, including downloading signed documents.
- Deduplicate on
event_id. Yousign says the same webhook can arrive more than once, andevent_idis globally unique. - Turn on
auto_retry. Without it, the only retry Yousign makes is the one that follows a timeout on the first attempt. - List the events you handle.
The
*wildcard covers events that exist when you create or update the subscription, so it isn't a way to pick up new ones. - Keep sandbox away from live data.
A subscription covers one environment. Use a separate endpoint for each, or check
sandboxbefore acting.
Common Yousign webhook events
Signature requests
signature_request.activated | Signature request is activated and leaves draft |
signature_request.done | All required signers finish and the request completes |
signature_request.declined | A signer refuses, which declines the whole request |
signature_request.expired | Expiration date passes before the request is completed |
Signers and approvers
signer.notified | Signer is ready to sign, with a link sent or retrievable |
signer.done | Signer finishes signing |
signer.declined | Signer refuses to sign, with their reason in the payload |
approver.approved | Approver accepts the signature request |
approver.rejected | Approver turns down the signature request |
Seals and verification
electronic_seal.done | Seal finishes processing successfully |
electronic_seal.error | Seal processing fails |
verification.identity_document.done | Identity document check is processed |
Events by resource
| Resource | Events | Payloads |
|---|---|---|
signature_request | 14 | 1 |
signer | 12 | 0 |
verification | 10 | 0 |
approver | 4 | 0 |
monitoring | 4 | 0 |
applicant | 3 | 0 |
workflow_action_group | 3 | 1 |
workflow_session | 3 | 1 |
1 more resource, including Other Yousign events. All 58 events →
In this hub
| Webhook events → | Every covered Yousign event, with payloads where the registry has them. |
| MCP events → | How an agent subscribes to Yousign events as MCP events. |
| Verify signatures → | Signature facts, verification code and common failures. |
| Production guide → | Production problems, such as timeouts and retries, and how to handle them. |
| Agent skill → | Install the webhook skill in your coding agent. npx skills add hookdeck/webhook-skills --skill yousign-webhooks |
Stop missing Yousign's 1-second window.
A slow Yousign handler counts as a failed delivery even when it succeeds. Hookdeck Event Gateway answers Yousign as soon as a delivery arrives, verifies its signature, queues it and delivers to your service with its own timeouts and retries.