API Reference

Webhooks

Webhooks allow you to receive automated messages to a specified URL in real-time whenever a set event occurs in Smarter Drafter. This feature enables you to automatically push submission answers or generated documents to an endpoint of your choosing, integrating seamlessly with your existing workflows and applications.

In Smarter Drafter, you can configure webhooks for two key events:

  • Submission Answers: Receive the data collected from a completed form submission.
  • Submission Documents: Receive the documents generated after a form submission.

When a webhook is setup for either Answers or Documents, all submissions in the tenant will be sending data to the webhook configured.

How to Configure Your Webhooks

Follow these steps to set up and manage your webhooks in Smarter Drafter:

  1. Navigate to Webhooks Settings:

In Smarter Drafter, go to the Account and under the General tab click on Webhooks.


  1. Create an Authorisation:

Authorisation is crucial for securing your webhook data and ensuring only authorised applications can receive it. Create an authorisation method via Authorisations tab, this will be used in the webhook setup from the dropdown menu that your endpoint supports. Smarter Drafter offers the following options:

  • No Auth: No authentication is required. Use this option with caution, primarily for testing or if your endpoint doesn't require authentication (not recommended for sensitive data).
  • Bearer Token: A token-based authentication where a secure token is included in the request header. You will need to provide your bearer token in the designated field.
  • Basic Auth: Uses a username and password for authentication, which are encoded and sent in the request header. You will need to provide your username and password.
  • API Key: An API key is sent as part of the request (e.g., in the header). You will need to specify the key name, header and API key value.

  1. Choose Your Webhook Type:

On the Webhooks page, you will see two tabs.

  • Submission Answers: To configure webhooks for the data submitted in forms.
  • Submission Documents: To configure webhooks for the documents generated by submissions.

Click on the tab corresponding to the type of webhook you wish to set up.

  1. Enter your endpoint URL:

In the Submission Answers Endpoint (or Submission Documents Endpoint) field, enter the URL where you want the webhook data to be sent. This URL is the destination for the automated messages from Smarter Drafter.

  1. Select an Authorisation Method:

Choose an authorisation method from the dropdown menu that your endpoint supports.

  1. Save Your Webhook Configuration:

Once you have entered your endpoint URL and selected/configured your authorisation method, click the Save button at the bottom of the page.

Your webhook is now active! Smarter Drafter will now send automated messages to your specified endpoint whenever a form is submitted (for Submission Answers) or a document is generated (for Submission Documents), depending on your configuration.

  1. Test your webhook:

Start by filling in a form and monitor if the webhook passes the required information. You can navigate to Submissions page, click on the submission and also view if it was successfully sent to the webhook configured.

Where a submission documents webhook is configured, ensure the form has a document template setup.

Webhook Structure

Answers webhook

Each webhook for Answers will pass the Submission ID, Name of the submission, User Email Address, User Full Name, Form Name, Form ID, Timestamp of the submission (UTC format) and the answers in the request body. ExternalID if passed via Deep Link will also be included (learn more about Deep Links).

The full extract of the questions and answers will also be sent as Question, Answer, Field Reference ID and whether this is a section or not.

Documents webhook

Documents webhook will send the generated file submission along with the below details.

ParameterDescription
submissionIdUnique ID for the submissions from Smarter Drafter. Note that this is not the unique identifier for the form used for the submission.
submissionNameName the submitter gave the submission.
fileNumberCount of the file in the submission.
fileCountTotal file count for the submission.
fileNameName of the document template as it appears in the form.
iManageFilePathFull file path of the document saved in iManage.
externalIdExternal identifier included in the deep link URL.
matterIdMatter external id if selected when creating a document

Note: where there are multiple documents generated from a single submission, separate webhook posts will be sent.