Interactive Sign tells a product what happened to its envelopes by POSTing a signed JSON event to the product's server. Every delivery carries an HMAC signature the receiver checks before it trusts the event. Polling GET /api/v1/envelopes/{id} is always available as a fallback.
Where Events Go
- The envelope's callback URL. When an envelope is created with
callbackUrl, every event for that envelope goes there, signed with the application's callback secret (key idcb1). The callback secret is given to the product when the application is provisioned. - Webhook endpoints.
POST /api/v1/webhook-endpointsregisters a URL for the whole application, optionally for chosen event kinds only. The answer holds the endpoint's own signing secret, shown only once.POST /api/v1/webhook-endpoints/{id}/rotatereplaces it.
URLs must use https. (In development only, http to 127.0.0.1 or localhost is accepted so local test receivers work.)
Event Kinds
envelope.sent: the envelope was sent and can be signed.recipient.viewed: a recipient opened the signing page.recipient.signed: a recipient finished signing.recipient.reassigned: a signer or approver handed their place to another person, where the envelope allows it (allowReassign). The data addspreviousName,previousEmail,name,emailandreason. The recipient id stays the same; the new person signs under it.recipient.approved: an approver approved. On a sequential envelope the next recipient is invited after this.envelope.expired: the envelope reached its expiry date before everyone finished; it stops and cannot be signed.recipient.declinedandenvelope.declined: a recipient declined; the envelope stops.envelope.voided: the sender voided the envelope.envelope.completed: everyone signed and the sealed file is ready.file.ready: the final sealed PDF and the certificate can be downloaded withGET /api/v1/envelopes/{id}/files/finaland/files/certificate.file.purged: the envelope's files were erased, either because it was a test envelope past the test period or because the application's retention mode said so (Keep after N years, Hand Off after the product confirmed its download, Keep Audit Only after N days). The rows and their SHA-256 hashes stay, soPOST /api/v1/verifystill recognizes the final PDF, but the file downloads answer 410. The data holdsreason(a sentence),filesErasedand, for a retention purge,retentionMode(keep,handofforaudit_only).
A product whose retention mode is Hand Off confirms its download with POST /api/v1/envelopes/{id}/handoff-confirm and the final file's SHA-256; the next retention pass erases the files and sends file.purged.
Status Completing (all signed, sealing in progress) is still reported as before; a product may treat it as signed and wait for envelope.completed.
webhook.test: sent byPOST /api/v1/webhook-endpoints/{id}/test.
The Request
POST <your url>
Content-Type: application/json; charset=utf-8
X-IS-Webhook-Signature: sha256=<64 lowercase hex characters>
X-IS-Webhook-Key-Id: <the id of the secret that signed it, for example cb1 or v1>
X-IS-Webhook-Delivery-Id: <the event id, the same on every retry>
{"id":"<delivery id>","schemaVersion":"1.0","applicationId":"<application id>",
"eventKind":"envelope.completed","timestamp":"2026-10-20T18:17:15.2020000Z",
"data":{"envelopeId":"...","status":"Completed","testMode":false,
"externalReference":"your reference","metadata":{...},"subject":"...",
"recipient":{"recipientId":"...","name":"...","email":"...","role":"signer","status":"Signed","declineReason":null},
"detail":null}}
data.recipient is set for recipient events and null otherwise. data.detail carries event specific facts (for example the purge reason). metadata and externalReference are what the product sent when it created the envelope, so it can route the event back to its own records.
timestamp is the time of this delivery attempt, so it changes on a retry while id stays the same.
Checking the Signature
- Read the raw request body bytes before parsing them.
- Compute HMAC-SHA256 over those exact bytes, keyed with the secret named by
X-IS-Webhook-Key-Id, as lowercase hex. - Compare it with the value after
sha256=inX-IS-Webhook-Signature, in constant time. Reject on a mismatch. - Reject a
timestampolder than your window (ten minutes is suggested) or more than 30 seconds in the future. - Remember accepted delivery ids for that window and ignore a repeat. The same event can arrive more than once if your answer was lost.
InteractiveSign.Client does all of this with WebhookVerifier.Verify(body, headers, secret).
Answering and Retries
Answer with any 2xx status within 15 seconds to accept the event. Anything else, a timeout or a connection failure is a failed attempt. The worker retries a failed delivery after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, then once a day for three days (PLAN.md section 8); after the last retry the delivery is abandoned. The schedule is the setting Webhook.RetryScheduleSeconds (60,300,1800,7200,21600,86400,86400,86400), which the QA suite compresses to prove the sequence.
GET /api/v1/envelopes/{id}/webhook-deliveries lists every delivery for an envelope with each attempt, its status code or error, and when the next attempt is due.