Intempt Docs
Developer Docs

Webhooks

Configure webhooks to receive real-time event notifications from Intempt.

Webhooks

Webhooks deliver real-time notifications when events occur in your Intempt project.

Setup

Configure webhooks in Settings > Webhooks in the Intempt console.

  1. Add your endpoint URL
  2. Select the events you want to receive
  3. Optionally set a signing secret for verification

Event Types

EventDescription
journey.completedA user completed a journey
segment.enteredA user entered a segment
segment.exitedA user exited a segment
experiment.winnerAn experiment reached statistical significance

Payload Format

\{
  "event": "segment.entered",
  "timestamp": "2026-01-15T10:30:00Z",
  "data": \{
    "segmentId": "seg_abc123",
    "segmentName": "High Value Customers",
    "userId": "user_xyz789"
  \}
\}

Verification

If you configured a signing secret, verify the X-Intempt-Signature header:

const crypto = require('crypto');

function verifyWebhook(payload, signature, secret) \{
  const expected = crypto
    .createHmac('sha256', secret)
    .update(payload)
    .digest('hex');
  return crypto.timingSafeEqual(
    Buffer.from(signature),
    Buffer.from(expected)
  );
\}

On this page