Skip to main content
POST
Create webhook endpoint

Authorizations

X-API-Key
string
header
required

Organization API key (sk_...). Get yours from Settings > API Keys in the dashboard.

Headers

X-Whitelabel-Slug
string

Optional tenant context for admin-key operations without an organization target, such as creating an organization. Defaults to the master tenant. Must match an explicit target organization when both are supplied. Does not limit the key’s platform authority.

Required string length: 1 - 100
X-Organization-Id
string<uuid>

Target organization for admin-key requests on organization-context routes, including Data API, intent audiences and dashboard routes without an organization path parameter. Required on those routes. When supplied with an organization path parameter, both must identify the same organization; conflicting targets return 400. Does not grant access to customer credentials.

Body

application/json
url
string<uri>
required

HTTPS endpoint URL

emailGrades
enum<string>[] | null

null sends all emails, including unknown grades. Otherwise select one or more grades (A valid, B catchall, C risky, D invalid). Only selected addresses are sent; a visitor with no selected address is skipped.

Required array length: 1 - 4 elements
Available options:
A,
B,
C,
D
signaturesEnabled
boolean
default:true

Whether to include HMAC signatures (default: true)

triggerMode
enum<string>
default:first_match

first_match: Send once per visitor (CRM). every_update: Send on every session (analytics)

Available options:
first_match,
every_update
segmentId
string<uuid>

Optional segment filter - if omitted, matches all visitors in organization

pixelId
string<uuid>

Optional pixel filter - if omitted, matches all pixels

maxRequestsPerSecond
integer
default:5
Required range: 1 <= x <= 100
maxRetries
integer
default:3
Required range: 0 <= x <= 10

Response

Organization webhook created

Webhook creation response with secret (shown only once)

id
string<uuid>
required
segmentId
string<uuid> | null
required
segmentName
string | null
required
url
string<uri>
required
signaturesEnabled
boolean
required

Whether to include HMAC signature header in webhook requests

triggerMode
enum<string>
required

Delivery mode

Available options:
first_match,
every_update
pixelId
string<uuid> | null
required

Optional pixel filter - if null, matches all pixels

pixelName
string | null
required
isActive
boolean
required
maxRequestsPerSecond
integer
required
Required range: 1 <= x <= 100
maxRetries
integer
required
Required range: 0 <= x <= 10
stats
object
required
createdAt
string
required
updatedAt
string
required
secret
string
required

🔐 Secret for HMAC signature verification (whsec_...) - SHOWN ONLY ONCE on creation, store it securely!

emailGrades
enum<string>[] | null

null sends all emails, including unknown grades. Otherwise select one or more grades (A valid, B catchall, C risky, D invalid). Only selected addresses are sent; a visitor with no selected address is skipped.

Required array length: 1 - 4 elements
Available options:
A,
B,
C,
D