Configuring a new webhook
To create a new webhook you need to go to Settings > Integrations > Outgoing Webhooks > Setup a new webhook from within the Candu dashboard.
URL
This is the end-point that you’ve configured to consume Candu events, this would typically be a server you’re hosting or a third party service that allow webhook consumption functionality, such as Zapier, Make or Slack.Name
This is a friendly name for your webhook that allows you to identify from the settings dashboard the webhook you’re configuring.Webhook format
The webhook format is responsible for how eventing HTTP request payloads are formatted. Two formats are supported currently, Default and Slack. The Default format will send requests with a JSON payload containing apayload field at the top-level with a Candu customer event in this cURL format:

Webhook Topic
We offer the following topics to subscribe to: Content Views, Content Interactions, and Form Submission events.
Content Views
A Content View event is triggered whenever a customer views a piece of Candu content. You would rely on the properties.slug field to reconcile which content is receiving new content views and the userId field to track the end user who is performing the view. You can find a piece of content’s slug from within the dashboard by going to Content > Choose your content > Settings.
Content Interactions
A Content Interaction event is triggered when a customer interacts with an interactable component with-in your Candu content. properties.eventName is the interaction label specified in the Candu Editor associated with the content interaction. To see the interaction label of an interactable component go to the editor, click on the component, and go to the interactions tab. You will see the interaction label there.
Form Submissions
A Form Submission event is triggered when a customer submits a form. The properties.formName is the name of the form associated with the submission event. The properties property also contains a key-value mapping of the user’s form inputs.Troubleshooting your outgoing webhook
Viewing webhook event logs
When Candu sends customer eventing data to your end-point, it expects a 2xx HTTP response code from the server. If the request times out, or we get a non-2xx response code, we persist error logs, with the status code we received and the payload we got back. These event logs can be accessed by viewing your webhook in the dashboard.
Additional troubleshooting
If event logs aren’t coming through as you’d expect, it’s worthwhile checking the following:- If you have identity verification enabled, ensure it’s configured correctly.
- Ensure you have correctly installed Candu
- Ensure that your webhook belongs to the same workspace that your installation script’s client token belongs to (go to Settings > Workspaces > Access Keys > Client Token to see the client token for your current workspace).
- Ensure that your webhook has a status of Enabled.