Webhooks

Set up webhooks for real-time survey notifications.

Webhooks are a method for your application to receive real-time notifications when a survey submission event occurs. CueCatch sends a POST request to the specified webhook URL with the survey response data in the request body.

Note

Webhooks only function when you choose to send all survey events to CueCatch.

Webhook Requests

CueCatch will retry the request up to five times in case of network errors. It is your responsibility to handle the webhook requests and ensure that the data is processed correctly and securely.

The request body contains the survey response data in JSON format.

FieldsDescription
teamIdYour team ID
sessionIdSurvey session ID. You can use this to uniquely identify a survey session.
surveyIdSurvey ID
startTsTimestamp when the survey started (i.e., when the first page was loaded)
completeTsTimestamp when the survey was completed (i.e., when the last page was finished)
initTsTimestamp when the survey was initialized (i.e., when the start screen was shown)
finalTsTimestamp when the survey was finalized (i.e., when the complete screen button was clicked)
variablesCustom variables set, if any
inputsAn array of survey inputs with responded values

Each input response has the following fields:

FieldsDescription
idInput ID
groupAn optional group name assigned to the input
customRefCustom reference assigned to the input, if set
valueValue selected or entered by the respondent

Setting up Webhooks

To set up a webhook for a survey, visit the survey settings page and add the webhook URL.

Webhooks
Webhooks

A Slack Example

Here is an example of a webhook that sends survey responses to a Slack channel. Learn more about sending messages to Slack using incoming webhook.

Webhooks
Webhooks

CueCatch detects the Slack webhook and applies basic formatting to post a message to the target Slack channel with the response data.