Overview
Webhooks allow your application to receive real-time notifications about events that occur within our system, such as when a document is signed or a package is fully executed. This guide will walk you through the process of subscribing to webhooks to automatically download signed documents.Steps
Setup a webhook endpoint
Follow the Webhooks setup guide.
Handle incoming webhook event notifications
When a webhook event occurs, our system will send a POST request to your specified endpoint with details about the event.Depending on your application’s needs, you can handle these events accordingly. For example, when you receive a
- Package executed
- Document executed
- Document signed
When a package is fully executed, all documents signed by all signers, you will receive a webhook event with the following payload:
Payload
package_executed event,
you can trigger the download of all executed documents in that package.Verify webhook requests
To ensure that incoming webhook requests are legitimate, you should verify the signature included in the
X-Syngrafii-Signature header of each request.View the Webhooks verification guide for detailed instructions on how to verify webhook signatures.Get package status
Once you receive a webhook event you want to act on, such as the
package_executed webhook event,
call the Packages status API endpoint to get the list of documents in the package.Request
Response
Download executed documents
After confirming that the package is fully executed, you can use the Packages download API endpoint to download all executed documents in the package.
Download PDFs
- Executed
- CAC
- MasterFile
Request