[ Web Proxy ]
URL:
Viewing: https://docs.sprig.com/docs/integrations/data-destinations/webhooks [Back]  [Original]

Webhooks - Sprig Docs
Skip to main content
Data Destinations

Webhooks

Customer Data Platform

Copy page

What is a Webhook?

A webhook is an HTTP request triggered by an event in a source system (in this case, Sprig) and sent to a destination system with a payload of data. Webhook requests are automatically sent out when their event is triggered in Sprig.

What Webhook Events Does Sprig Support?

Sprig supports webhooks triggered by the following events:
  • Answer submitted - a user submits an answer to a specific question in a study.
  • Study submitted - a user completes and submits a study.
  • Study sent - Sprig has triggered and delivered a study.
  • Study seen - a user has viewed a study.
  • Theme identified - Sprig identifies a new theme associated with a study.
  • Study status changed - a study becomes paused, completed, etc.
Currently, Sprig supports Bearer Tokens for webhook authentication. The webhook is sent as an HTTP POST request to the specified endpoint, in JSON format. You can have different Webhook configurations for each Product and Environment.

Configuring Webhooks in Sprig

To receive webhooks from Sprig to a destination system:
  1. Navigate to Integrations > Destinations > Webhook and click Configure.
  2. Select the Production or Development environment.
  3. Enter the destination systems Payload URL.
  4. Enter the Bearer Token API Secret (Bearer_is automatically prepended to the_authorization: header field).
  5. Check which events in Sprig you want to trigger a Webhook request.
  6. Click Test Webhook to see if the request posts to the destination system.
  7. Click Save to save the configuration.

Example cURL equivalent of the Test Webhook request

Example Payloads for Each Event

Answer Submitted

Theme Identified

Study Submitted

Study Status Changed

Study Sent

Study Seen

Data destinations
Previous
Mixpanel
Next

Web Proxy Viewer  |  New URL  |  Original Page