Survey answer webhooks (developers)
Using webhooks as a simple method of pushing events to your endpoint.
Santeri
Last Update 2 maanden geleden
Enable webhooks for your surveys
On the settings page scroll down to Webhooks and click on Add new. Add a name, add the endpoint, and select which events you want to subscribe to. You can also create the webhook through the API.
Attributes
- survey_id string
- Unique identifier for the survey.
- survey_name string
- Name of the survey.
- answer_id string
- Unique identifier for the given answer.
- answer_values object
- Contains all the answers that the user gave.
- nps integer
- Answer data of question "How likely are you to recommend our service to a friend or colleague?" On a scale of 0-10.
- custom object
- If your survey had custom questions their answers will be listed here as key value pairs. Keys are question ids, values can be answer ids, strings or arrays if the question had multiple selection answers.
- feedback string
- Answer data of question "What is the primary reason for your score?"
- comment string
- Answer todata ofquestion "Do you want to give your feedback publicly?". This answer is used as the public recommendation.
- name string
- Answer data of question "Your name"
- email string
- Answer data of question "E-mail (not displayed)"
- location string
- Answer data of question "Location"
- organization string
- Answer data of question "Organization"
- imageFilename string
- Answer data of question "Profile picture". This picture can be accessed, with parameters w=width and h=height from https://d3hwc7twidb4ye.cloudfront.net/w128-h128-c/survey/[imageFilename]
- publicConsent string
- Answer data of question "I want to publish my feedback. I have read the [Companys] privacy policy". Will be "true" or "".
- noPublicConsent string
- Answer data of question "I don't want to publish my feedback". Will be "true" or "".
- created_at ISO 8601 with timezone
- Time when the first page was submitted.
- organization_id string
- Unique identifier for the organization.
- contact contact_object
- Contains a contact_object if answer link contained an identifier.
Get Webhooks
Returning
Create Webhook
Body
Remove Webhook
Get webhook example data