Webhooks

A Webhook is a notification sent over the web, which transfers data from one app to another when something happens. In the case of surveys, whenever a new response is entered, this triggers a notification to be sent automatically.


Essential 
Professional 
Enterprise ✓
ReportR ✓

 Survey Anyplace Webhook notifications are sent via an HTTP POST request, and the response data is presented in JSON format. 


Follow through the steps below to set up your own webhook. In this guide we'll discuss the following:

  1. Setting up Webhooks
  2. What's next?


1 Setting up Webhooks

Going to the Extra Options tab in your questionnaire. Scroll down to Integrations and click Webhooks.


Webhooks - extra options


Now click on Webhooks and you'll see where you can enter the webhook URL. This is the endpoint to which we will make the HTTP POST request to.


Tip: We recommend using HTTPS for your webhook URL because it is more secure.


Click Save webhook when you have entered the URL.


Webhook URL


Once you've saved the webhook, you'll have the option to get example data to review the format of the response Webhook notification. This will fetch the last survey response received.


Get webhook example data


This is how the example data will be shown:


Webhook example data


Click Save changes to save the webhook. That's all! Webhooks are now active on this survey, and any new submissions will be automatically POSTed to the specified Webhook URL.


That's the basics covered, and you can also click get logs to display the 50 most recent results. Please note that Zapier integration logs will also be presented here for troubleshooting.


Webhook get logs


Here's how the logs will be shown:


Webhook logs example


Make use of the copy function to copy and paste out the Payload or Response status. Your webhook should send a 2XX HTTP response status code back to indicate webhook data receipt. 200 = Accepted


2 What's next?

  • Zapier integration - Zapier is a tool that enables the transfer of data from one web app to another one. By using Zapier in combination with Survey Anyplace, you can send the data collected within your survey to create contacts in Survey Anyplace or send data to apps such as Google Sheets, Mailchimp, Salesforce, Trello, and many more. For example, to transfer email addresses collected in a survey to a Mailchimp email list.
  • Integromat integration - With the Survey Anyplace integration, you have loads of possibilities of actions that can be executed by Integromat when you receive a new survey response - integrate with Google Sheets, Twilio, WooCommerce, Mailchimp, Dropbox, and many more. Integromat offers similar features to Zapier but is more powerful as you can set a single event to trigger a number of different actions to be taken simultaneously.
  • External fields allow you to pull in data from external data sources, such as a spreadsheet. This is useful if you want to read data from an external data source, for example, cell values from a Google sheet, use these values in variable data in the PDF report, or a more advanced use would be to use the Google sheet as a bi-directional database, whereby the same survey will also send data to the Google Sheet. This would allow the benchmark cell value referenced to be adjusted automatically as new responses are received.
S
Support is the author of this solution article.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.