Appearance
Webhooks
A webhook subscription sends a sub-account's events (a new contact, an inbound message, a booking, a payment) to your URL as they happen. Each delivery is signed, retried when your receiver fails, and logged.
You'll need
- To be an admin of the sub-account, with it chosen in Working in.
- An https URL on port 443 with a public host name. IP addresses, internal hosts and URLs with credentials are refused, and redirects are never followed.
Create a subscription in the app
- Go to Integrations > Webhooks.
- Select New subscription.
- Enter the Target URL and, if you like, a Description.
- Under Events, tick the events you want.
- Select Create subscription.
- Copy the signing secret now (it starts with
whsec_). It is shown once.
Open a subscription to Pause it, Turn on it again, Rotate secret, Delete it, Send test for any of its events, or read its Delivery log. Each delivery in the log has a Replay button that sends the same event again.
A sub-account can have up to 50 subscriptions, each with up to 25 event types. Only events that happen after a subscription is created are sent.
Event types
Subscriptions made in the app can use any event. A REST hook, or polling, needs the scope listed for the event.
| Event | Label in the app | Scope |
|---|---|---|
contact.created | New contact | contacts:read |
contact.updated | Contact updated | contacts:read |
contact.tag_added | Tag added to contact | contacts:read |
contact.tag_removed | Tag removed from contact | contacts:read |
contact.deleted | Contact deleted | contacts:read |
message.received | New inbound message | conversations:read |
message.sent | Message sent | conversations:read |
appointment.booked | Appointment booked | bookings:read |
appointment.rescheduled | Appointment rescheduled | bookings:read |
appointment.cancelled | Appointment cancelled | bookings:read |
appointment.completed | Appointment completed | bookings:read |
appointment.no_show | Appointment no-show | bookings:read |
opportunity.stage_changed | Opportunity stage changed | opportunities:read |
opportunity.status_changed | Opportunity won, lost or reopened | opportunities:read |
invoice.sent | Invoice sent | invoices:read |
invoice.paid | Invoice paid | invoices:read |
payment.succeeded | Payment received | invoices:read |
payment.refunded | Payment refunded | invoices:read |
form.submitted | Form submitted | forms:read |
social.post_published | Social post published | social:read |
custom_object.record_created | Custom object record created | objects:read |
custom_object.record_updated | Custom object record updated | objects:read |
custom_object.record_deleted | Custom object record deleted | objects:read |
custom_object.record_associated | Custom object record linked | objects:read |
custom_object.record_dissociated | Custom object record unlinked | objects:read |
course.enrolled | Enrolled in a course | courses:read |
lesson.completed | Lesson completed | courses:read |
course.completed | Course completed | courses:read |
community.joined | Joined a community | courses:read |
subscription.started | Subscription started | invoices:read |
subscription.canceled | Subscription cancelled | invoices:read |
payment.failed | Payment failed | invoices:read |
task.created | Task added | tasks:read |
task.completed | Task completed | tasks:read |
note.added | Note added | contacts:read |
assessment.completed | Assessment completed | forms:read |
program.enrolled | Enrolled in a coaching programme | courses:read |
program.low_credits | Programme sessions running low | courses:read |
program.expired | Programme ended | courses:read |
checkin.submitted | Weekly check-in submitted | courses:read |
checkin.missed | Weekly check-in missed | courses:read |
action_item.overdue | Action item overdue | courses:read |
goal.achieved | Goal achieved | courses:read |
metric.logged | Client metric logged | courses:read |
contact.updated and custom_object.record_updated list only the names of the fields that changed: fetch the record for the new values. Task and note events never carry who on your team created or was assigned the task. subscription.canceled says whether billing stops now or at the end of the period (atPeriodEnd, endsAt). Comments and direct messages from social networks arrive as message.received, with the network as the channel. The OpenAPI document lists a sample of every event under x-webhook-events.
Payload
Each delivery is a POST with a JSON body:
json
{
"id": "evt_sample_contact_created",
"type": "contact.created",
"version": 1,
"occurredAt": "2026-10-16T15:00:00.000Z",
"subaccountId": "subaccount_sample",
"sequence": 0,
"data": {
"contactId": "ct_sample",
"firstName": "Ada",
"lastName": "Lovelace",
"email": "ada@example.com",
"phone": "+15555550123",
"tags": ["lead"],
"leadSource": "website"
}
}idis the event's id. It stays the same on retries and replays, so use it to ignore duplicates.sequenceis the event's position in the sub-account's log. Use it to put events in order.versionis the payload version, currently1.
Headers sent with each delivery:
| Header | Value |
|---|---|
X-Webhook-Signature | t=<unix seconds>,v1=<signature> (see below) |
Idempotency-Key, X-Webhook-Event-Id | The event id |
X-Webhook-Event | The event type |
X-Webhook-Delivery | The delivery id (new for each replay) |
X-Webhook-Sequence | The event's sequence |
X-Webhook-Test | true on test sends only |
Verify the signature
The signature is a hex HMAC-SHA256 of <t>.<raw body>, keyed with the whole signing secret (including whsec_). Reject deliveries whose t is more than 5 minutes from your clock. For 24 hours after you rotate the secret, the header carries two v1= values, one per secret: accept the delivery if either matches.
js
import crypto from 'node:crypto';
// rawBody: the request body exactly as received (a string), before JSON parsing
export function verifyWebhook(rawBody, signatureHeader, secret, toleranceSeconds = 300) {
const parts = signatureHeader.split(',').map((p) => p.trim());
const t = parts.find((p) => p.startsWith('t='))?.slice(2);
if (!t || !/^\d+$/.test(t)) return false;
if (Math.abs(Date.now() / 1000 - Number(t)) > toleranceSeconds) return false;
const expected = crypto.createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex');
return parts
.filter((p) => p.startsWith('v1='))
.some((p) => {
const given = Buffer.from(p.slice(3));
return given.length === expected.length && crypto.timingSafeEqual(given, Buffer.from(expected));
});
}Answer with any 2xx status quickly; each attempt times out after 10 seconds.
Retries and turning off
- 2xx: delivered.
- 408, 425, 429, 5xx, a timeout or a connection error: retried with backoff, starting at 30 seconds and doubling each time (30 s, 1, 2, 4, 8, 16, 32 minutes), up to 8 attempts. Then the delivery is marked failed.
- 410 Gone: the subscription is turned off. Use this to unsubscribe from your side.
- Any other 4xx, or a redirect: failed at once, no retry.
Events for one contact go out in order: a later event waits while an earlier one is being retried.
After 5 failed deliveries in a row, the subscription is turned off and its owner gets an in-app notice and an email. Fix your receiver, then select Turn on; the failure count starts again. Test sends never count.
REST hooks and polling
Automation platforms can manage their own subscriptions with an API key or app token that has webhooks:write plus the event's scope:
bash
curl -X POST https://api.example.com/api/v1/rest/hooks \
-H "X-API-Key: $API_KEY" -H "Content-Type: application/json" \
-d '{"targetUrl": "https://hooks.example.com/catch/123", "event": "contact.created"}'The answer (201) holds id, event, targetUrl and the signing secret. Remove the hook with DELETE /api/v1/rest/hooks/{hookId}. An app can remove only its own hooks. REST hooks also appear in Integrations > Webhooks.
Without webhooks, poll GET /api/v1/rest/events?type=contact.created&limit=25 (newest first, limit up to 100), and get a sample payload from GET /api/v1/rest/events/samples?type=contact.created. Both need the event's scope.