HMAC-SHA256 using a shared secret — always verify the signature before processing.
Prerequisites
- API key with the permission
webhooks:manage— create one in the dashboard under Settings → API & webhooks (choose it under Individual permissions). See Authentication → Permissions. - A public HTTPS URL (or a tunnel like ngrok for local development).
Steps
1
Implement a minimal handler
Permission: none — this runs on your server.Your endpoint must read the raw body bytes for signature verification. Do not use a global JSON parser — it changes the byte sequence before you can verify the signature.
2
Register the endpoint
Permission: The response includes the webhook
webhooks:manage.id — save it to update or delete the endpoint later — and the secret, the only time the API returns it.3
Send a test delivery
Permission: This fires a signed example event to your URL without waiting for a real message event — the same as the Test button in Settings → API & webhooks. The answer says which HTTP status your endpoint returned.
webhooks:manage.4
Understand the envelope
Every event, regardless of platform, uses the same outer shape:Use
id for deduplication — the signature has no timestamp, so deduplicating is also what stops a replayed request (see Verify requests). Use event to route to the right handler. Respond with 2xx within 5 seconds and process asynchronously.Learn more
- Webhooks overview — full event catalogue, delivery semantics, and retry behaviour
- Event types — full catalogue of all webhook events
- Verify requests — HMAC-SHA256 signature verification