Webhook Callbacks

Formstack provides Integrators with the ability to be notified when an event takes place within Sign.

🚧

Warning!

Currently Webhook Callbacks works only for documents sent through integrations. It will not work if document is added via Formstack Sign UI.

Webhook Callback Request Format

The format for events sent to your callback URL is an application/json POST request, with the event details in the request body.

Callback POST Headers

HeaderDescription
Content-HmacSHA256Contains the HMAC SHA256 Hash of the request body using your apiAccessKey as the seed. This hash can be used to validate that the event received by your callback endpoint was transmitted by InsureSign and the contents of the body were not modified during transmission.
Content-TypeSpecifies the format of the request body.

Request Body

The following is the format of the InsureSign Webhook Callback Event notification found on the POST request body.

{
 "id": "f5a317cf-38a3-4342-8d98-bf58df0e865a",
 "eventDateTime": 1544715978401,
 "documentId": "9fb73328-a0e9-40c7-81ce-c7d2f7a2d70911545",
 "eventType": "FINALIZED",
 "lastSendDateTime": 1544715978501
}
FieldTypeDescription
idStringUnique identifier for the Webhook Event.
eventDateTimeLongA number representing the Unix epoch in which the event transpired in the InsureSign system.
documentIdStringThe unique identifier for the document that experienced the event.
eventTypeStringThe type of event that was recorded. See [InsureSign Webhook Callback Events] for a complete list.
lastSendDateTImeLongA number representing the Unix epoch which represents the latest attempt to transmit the event to the Integration Callback Url.

Responding To Webhook Callbacks

Each integrator callback endpoint will be required to return a 200 HTTP response code, otherwise, the callback will be considered a failure and will flow through the following retry strategy. Each attempt to transmit the InsureSign event to the integrator’s callback will set the lastSendDateTime with the Unix epoch representing the moment the attempt was made. The last response from their integrator callback will be recorded. All callback events associated with an integrator can be retrieved by Integration Webhook Event List.

Retry Intervals:

  • 30 seconds
  • 1 minute
  • 3 minutes
  • 5 minutes
  • 7 minutes

Using Webhooks

Integration Configuration

To receive a Webhook Callback for Formstack Sign events you will first need to update your Integration profile with a callback URL. The URL will be used to make POST requests with data relating to the event that took place.

Copy integrationId from API Access Tab in Formstack Sign

📘

Refer to API Docs

Please refer to API Reference PUT /integrations/{integrationId}

PUT integrations/{integrationId}

Event Subscription

Before you can begin receiving event notifications you must be subscribed to one or more InsureSign events. To subscribe use this POST request to indicate which event(s) you would like to receive notifications.

📘

Refer to API Docs

Please refer to API Reference for POST /subscriptions

POST subscriptions

Supported Callback Events

The following request will retrieve the list of supported Webhook Callback Event Types. Use the event name in the Event Subscription to subscribe to a Formstack Sign Webhook Event.

NameDescription
SIGNEDCallback each time a participant signs a document.
SIGNER_CANCELLEDCallback each time a participant declines to sign a document.
SENDER_CANCELLEDCallback when the sender cancels a document signature request.
FINALIZEDCallback when all participants have signed a document.
DOCUMENT_COPY_TO_ALLCallback when a copy of the document has been sent to all participants.
DOCUMENT_SENDER_CREATEDCallback when a document is created.
DOCUMENT_VIEWEDCallback when a document has been viewed.
EMAIL_SENTCallback when an e-mail is sent to a participant.
SERVICE_AGREEMENTCallback when a signer agrees to the InsureSign service agreement.
DOCUMENT_CREATEDCallback when a document is created.
DOCUMENT_PDF_DOWNLOADEDCallback when the finalized document is downloaded.
SIGNING_LINK_REQUESTEDCallback when a signing link is requested for a document.
READY_FOR_FIELD_PLACEMENTCallback when a document is submitted and is ready to have participants/fields placed.

List available also at GET /webhooks/events

GET webhooks/events

List Of Subscribed Events

Retrieve all of an Integrators Webhook Callback Event Subscriptions.

📘

Refer to API Docs

Please refer to API Reference for GET /integrations/{integrationId}/subscriptions

GET integrations/{integrationId}/subscriptions

Webhook Callbacks History

Retrieve all Webhook Callback Events recorded for an Integrator. This allows Integrators to perform an audit of the events they have received against all of the notifications InsureSign has attempted to transmit.

📘

Refer to API Docs

Please refer to API Reference for GET /integrations/{integrationId}/webhooks

GET integrations/{integrationId}/webhooks

Un-Subscribing from Event

Un-subscribe from an InsureSign Webhook Callback Event.

📘

Refer to API Docs

Please refer to API Reference for DELETE /integrations/{integrationId}/subscriptions/{subscriptionId}

DELETE integrations/{integrationId}/subscriptions/{subscriptionId}