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.
The notifications are sent via an HTTP POST request, and the response data is presented in JSON format.
This guide will teach you:
1. Setting up Webhooks
Going to the Extra Options tab in your questionnaire. Scroll down to Integrations and click Webhooks.
You'll see where you can enter the webhook URL. This is the endpoint to which we will make the HTTP POST request to.
We recommend using HTTPS for your webhook URL because it is more secure
Click Save when you have entered the URL.
Once you've saved, 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.
This is how the example data will be shown:
Click Save changes to save your work and you are done. 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.
Here's how the logs will be shown:
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