How to pass data from client API to a survey?

The webhook is an advanced "by invitation only" feature that requires you to have your own API, and you wish to integrate the data from your API into your survey. Your API should return data in plain text format.

Create a webhook

  1. On the Dashboard page, click on the "Edit" link for your survey.
  2. Click on the "Webhooks" from the header menu, or from the menu below questions.
  3. Enter a webhook name such as "todaysprice".
  4. Enter your API URL address.
  5. Enter a default value. The default value is used in case your API URL takes too long time, such as more than 8 seconds.
  6. Click on the "Save WEbhook" button.

Use a webhook

  1. On the Dashboard page, click on the "Edit" link for your survey.
  2. Navigate to the question or the choice you wish to pass data in.
  3. Insert the variable surrounding by double "curly" brackets, such as {{todaysprice}}, in the question title or the choice. This will be replaced with the value returned from the client API.

Search for articles:


Name
Email
Description