Webhook

Webhook sync survey responses data to the custom URL that is provided by you on our dashboard. We support two webhook events currently:

  • on completion of a response to a survey.

  • on submit of an answer by a user

Setting up the Webhook integration

  • Navigate to Connections Tab > Webhook in Blitzllama Dashboard. Click on the Webhook section.

  • Enter Webhook URL and Webhook secret in the Webhook Section. We recommend using https your webhook URL because it is more secure.

  • Click on the save button to save webhook details.

group_id - every micro survey instance is uniquely identified as group_id. This identifier can help to identify the group of users' responses to a specific survey instance.

response - contains the user's response data. The data for all questions except multi-choice is a string. The multi-select question response is an array.

trigger - the trigger event that requested the survey.

event_type - used to determine the type of webhook event being sent.

created_at - refers to the timestamp of the user's response in the ISO 8601 date and time format.

on completion of a response to a survey.

The webhook payload data contains the response data grouped at a user level. A sample payload is below.

on submit of an answer by a user

The webhook payload contains the answer data that is sent on submission of an answer by a user. A sample payload is below.

This webhook is selectively enabled for a few clients.

Validate webhook (optional)

Webhook request header x-webhook-signature has the hmac signature to validate. Please store webhook_secret in environment variables.

Last updated

Was this helpful?