Skip to content

Webhook Setup Guide

Last updated: March 19, 20267 min readIntermediateDeveloper

Webhooks let you receive real-time notifications when consent events occur. This guide covers setup, payload format, and best practices.

Creating a Webhook Endpoint

1

Go to Settings > Webhooks

Open the webhook configuration panel.

2

Add endpoint URL

Enter your HTTPS endpoint URL.

3

Select events

Choose which events trigger the webhook (consent.created, consent.updated, etc.).

4

Save and test

Use the test button to send a sample payload.

Payload Schema

javascript
{
  "event": "consent.created",
  "timestamp": "2026-03-18T12:00:00Z",
  "data": {
    "recordId": "...",
    "domain": "example.com",
    "consent": { "analytics": true }
  }
}

Signature Verification

javascript
const crypto = require('crypto');
const signature = req.headers['x-webhook-signature'];
const expected = crypto
  .createHmac('sha256', WEBHOOK_SECRET)
  .update(JSON.stringify(req.body))
  .digest('hex');
if (signature !== expected) throw new Error('Invalid signature');

Retry Policy

  • Failed webhooks are retried up to 3 times
  • Retry intervals: 1 minute, 5 minutes, 30 minutes
  • After 3 failures, the webhook is marked as failed
  • Failed webhooks are visible in the dashboard for manual retry
Always handle webhooks idempotently. Use the recordId to detect duplicate deliveries.

Was this article helpful?