Webhook Payloads
document_contract_terminated
A user terminated the contract; its status is now terminated. Subject: User · Object: Document · Payload: user_name, reason (null when none was given), end_date, changed (the contract fields that moved: ["status"]).
postWebhookdocument_contract_terminated
Headers
User-Agentstring required
Always Assinafy-Webhooks/1.0.
webhook-idstring required
Message ID: the same on every attempt of this event to this endpoint. Use it to deduplicate retries.
webhook-timestampstring required
Unix timestamp (seconds) of this attempt.
webhook-signaturestring
Sent only when signing is enabled on the endpoint: v1,<base64 HMAC-SHA256>. See Verifying signatures.
Payload
Example payload
{
"id": 184467,
"event": "signer_viewed_document",
"origin": {
"ip": "203.0.113.7",
"user-agent": "Mozilla/5.0"
},
"created_at": 1790000000,
"account_id": "65f1c2a9b3e4d5f6"
}Response
Any 2xx response acknowledges the delivery. Any other status, a connection error or a timeout counts as a failed attempt.
Changes
Webhooks have no change history: a webhook is keyed by its event name rather than a path and method, so no recorded change can name it.