Webhooks
Signed HTTPS requests the moment a booking, visit, payment, customer, lead, quote, invoice, plan, rating, team member or payout changes. Use them from Zapier, Make or your own server.
Ways to subscribe
From the admin: Integrations, then Webhooks. Add an endpoint with an https:// URL, choose the events and locations, copy the signing secret (shown once), and use Send test event. Works with Zapier (Catch Hook) and Make (Custom webhook) without code.
From an app: POST /hooks with an API key that has webhooks:manage subscribes a URL and answers its signing secret once; DELETE /hooks/{id} unsubscribes. This is the REST hooks pattern Zapier and Make apps use.
Webhooks need a plan that includes them. Endpoints from the admin and from the API share one limit per workspace.
curl -X POST "https://gotolisto.com/api/v1/hooks" \
-H "Authorization: Bearer qk_live_…" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: <your-unique-id>" \
-d '{
"target_url": "https://hooks.zapier.com/hooks/standard/000000/sample/",
"events": [
"booking.created"
]
}'Deliveries
Each delivery is an HTTPS POST with a JSON body. Answer any 2xx within 10 seconds and it counts as delivered; the body of your answer is ignored. Anything else, a timeout or a redirect (redirects are never followed) is a failure and is retried.
Only public https:// addresses are accepted: the URL is checked when it is saved, and every send refuses an address that resolves to a private, local or reserved network.
Headers
| Header | Value |
|---|---|
content-type | Always application/json. |
user-agent | Identifies the sender. gotolisto-Webhooks/1.0 |
webhook-id | The event id, the same as id in the body. Stable across retries and resends: deduplicate on it. |
webhook-timestamp | Unix seconds when this attempt was signed. |
webhook-signature | One or more space-separated v1,<base64> signatures (Standard Webhooks). |
Example delivery
A booking.rescheduled event, signed with a made-up secret. The body is sent as compact JSON; it is shown indented here.
POST /your/webhook/path HTTP/1.1
content-type: application/json
user-agent: gotolisto-Webhooks/1.0
webhook-id: 00000000-0000-4000-8000-000000001001
webhook-timestamp: 1791817445
webhook-signature: v1,t+mZOymTI+nBdTQyjCfIrKA2CJq5odweXHoGcl8Mpfk=
{"id":"00000000-0000-4000-8000-000000001001","type":"booking.rescheduled","version":1,"occurred_at":"2026-10-12T15:04:05Z","tenant":{"id":"00000000-0000-4000-8000-00000000f001","slug":"sample","name":"Sample Home Services"},"data":{"object":{"id":"00000000-0000-4000-8000-00000000b001","object":"booking","status":"confirmed","date":"2026-10-13","time":"10:00","start_time":"2026-10-13T16:00:00Z","duration_min":180,"timezone":"America/Mexico_City","arrival_window":null,"crew_size":1,"location":{"id":"00000000-0000-4000-8000-00000000a001","name":"Sample location"},"service":{"id":"00000000-0000-4000-8000-00000000c001","name":"Sample service"},"addons":[{"key":"inside_fridge","quantity":1}],"total":{"amount":"1200.00","currency":"MXN"},"discount":{"amount":"0.00","currency":"MXN"},"payment":{"status":"pending","method":"card","paid_at":null},"crew":[{"id":"00000000-0000-4000-8000-00000000e001","name":"Sample S."}],"customer":{"id":"00000000-0000-4000-8000-00000000d001","first_name":"Sample","last_name":"Client","email":"sample.client@example.com","phone":"+525500000000"},"address":{"line":"123 Sample Street","unit":"1A","building":null,"lat":null,"lng":null,"place_id":null,"maps_url":null},"source":"admin","quote_id":null,"attribution":{"utm_source":null,"utm_medium":null,"utm_campaign":null,"utm_term":null,"utm_content":null,"referrer":null,"landing_page":null},"created_at":"2026-10-12T15:04:05Z","updated_at":"2026-10-12T15:04:05Z"},"previous":{"date":"2026-10-12","time":"09:00","start_time":"2026-10-12T15:00:00Z"}}}secret = whsec_ZG9jcy1leGFtcGxlLXNlY3JldC1ub3QtcmVhbC0zMmI=webhook-timestamp = 1791817445
Payload
| Name | Description |
|---|---|
id | Event id (also the webhook-id header). |
type | The event, for example booking.created. |
version | Payload version. |
occurred_at | When the change happened, ISO 8601 UTC. |
tenant | The workspace: { id, slug, name }. |
data.object | The full object as it is when the event is built, usually within a minute of the change. |
data.previous | Only on update events: the old values of the fields that changed. |
data.added, data.removed | Only on booking.crew_changed: team member ids. |
data.booking_id | Only on lead.converted: the booking made from the lead. |
data.actor | Only on booking.* events when the AI receptionist made the change (its request finished within 60 seconds after it): "assistant". Absent otherwise. |
Objects are the same as the API returns: a booking in a webhook equals GET /bookings/{id}. The current version is 1.
Client contact details (name, email, phone, address) are included by default. An admin can switch them off per endpoint; ids, dates, services and amounts are still sent.
A payload over 256 KB drops its add-on lines and carries "truncated": true. A deleted customer arrives as { "id", "object": "customer", "deleted": true }.
{
"id": "00000000-0000-4000-8000-000000001001",
"type": "booking.rescheduled",
"version": 1,
"occurred_at": "2026-10-12T15:04:05Z",
"tenant": {
"id": "00000000-0000-4000-8000-00000000f001",
"slug": "sample",
"name": "Sample Home Services"
},
"data": {
"object": {
"id": "00000000-0000-4000-8000-00000000b001",
"object": "booking",
"status": "confirmed",
"date": "2026-10-13",
"time": "10:00",
"start_time": "2026-10-13T16:00:00Z",
"duration_min": 180,
"timezone": "America/Mexico_City",
"arrival_window": null,
"crew_size": 1,
"location": {
"id": "00000000-0000-4000-8000-00000000a001",
"name": "Sample location"
},
"service": {
"id": "00000000-0000-4000-8000-00000000c001",
"name": "Sample service"
},
"addons": [
{
"key": "inside_fridge",
"quantity": 1
}
],
"total": {
"amount": "1200.00",
"currency": "MXN"
},
"discount": {
"amount": "0.00",
"currency": "MXN"
},
"payment": {
"status": "pending",
"method": "card",
"paid_at": null
},
"crew": [
{
"id": "00000000-0000-4000-8000-00000000e001",
"name": "Sample S."
}
],
"customer": {
"id": "00000000-0000-4000-8000-00000000d001",
"first_name": "Sample",
"last_name": "Client",
"email": "sample.client@example.com",
"phone": "+525500000000"
},
"address": {
"line": "123 Sample Street",
"unit": "1A",
"building": null,
"lat": null,
"lng": null,
"place_id": null,
"maps_url": null
},
"source": "admin",
"quote_id": null,
"attribution": {
"utm_source": null,
"utm_medium": null,
"utm_campaign": null,
"utm_term": null,
"utm_content": null,
"referrer": null,
"landing_page": null
},
"created_at": "2026-10-12T15:04:05Z",
"updated_at": "2026-10-12T15:04:05Z"
},
"previous": {
"date": "2026-10-12",
"time": "09:00",
"start_time": "2026-10-12T15:00:00Z"
}
}
}Events
Subscribe to any of these. Events of an endpoint can be limited to some locations; events with no location (for example team, payouts and home-watch leads) always pass.
Bookings
| Event | Sent when |
|---|---|
booking.created | Booking created. A booking is created, from any channel. |
booking.updated | Booking updated. A watched field of a booking changed (includes every change below). data.previous holds the old values. |
booking.confirmed | Booking confirmed. The status became confirmed, or a booking was created already confirmed. |
booking.rescheduled | Booking rescheduled. Date, time or start changed and the booking is not cancelled. data.previous holds the old date and time. |
booking.cancelled | Booking cancelled. The status became cancelled. |
booking.completed | Booking completed. The status became completed. |
booking.no_show | Booking no-show. The status became no_show. |
booking.crew_changed | Crew changed. The assigned crew changed. data.added and data.removed list team member ids. |
Visits
| Event | Sent when |
|---|---|
visit.on_the_way | Specialist on the way. The specialist reported they are on the way. |
visit.arrived | Specialist arrived. The specialist reported they arrived. |
visit.started | Visit started. The specialist started the visit. |
visit.finished | Visit finished. The specialist finished the visit. |
Payments
| Event | Sent when |
|---|---|
payment.succeeded | Payment succeeded. The booking's payment became paid, or a booking was created already paid. |
payment.failed | Payment failed. The booking's payment became failed. |
payment.refunded | Payment refunded. A refund was recorded for a booking (partial refunds included). |
Customers
| Event | Sent when |
|---|---|
customer.created | Customer created. A customer was added, including customers created from a booking. |
customer.updated | Customer updated. A watched field of a customer changed. data.previous holds the old values. |
customer.deleted | Customer deleted. A customer was deleted. The object is { id, object, deleted: true }. |
Leads
| Event | Sent when |
|---|---|
lead.created | New lead. A lead appears in the admin leads list (contact saved in the calculator, a quote request, a home-watch request or POST /leads). A calculator lead that then files a quote request fires twice (open, then requested). |
lead.converted | Lead booked. A booking was made from a lead. data.booking_id is the booking. |
Quotes
| Event | Sent when |
|---|---|
quote.created | Quote created. An admin created a quote. |
quote.sent | Quote sent. A quote was sent to the client. |
quote.accepted | Quote accepted. The client accepted a quote. |
quote.declined | Quote declined. The client declined a quote. |
Invoices
| Event | Sent when |
|---|---|
invoice.created | Invoice created. An invoice was created (payment links do not fire this). |
invoice.updated | Invoice updated. Line items, totals, currency or due date changed. data.previous holds the old values. |
invoice.sent | Invoice sent. An invoice or payment link was sent. |
invoice.paid | Invoice paid. An invoice or payment link was paid. |
invoice.voided | Invoice voided. An invoice or payment link was voided. |
invoice.overdue | Invoice overdue. A sent, unpaid invoice passed its due date (in the business time zone). Once per invoice, within a few minutes of midnight; status stays sent. |
Recurring plans
| Event | Sent when |
|---|---|
recurring.created | Recurring plan created. A recurring plan was created. |
recurring.updated | Recurring plan updated. Frequency, day, time, service, price, discount, location or a future end date changed, or the plan was reactivated. |
recurring.cancelled | Recurring plan cancelled. A plan was turned off, or its end date set to today or earlier (in the location's time zone). |
Ratings
| Event | Sent when |
|---|---|
rating.created | New rating. A client rated a visit (stars and comment). |
Team
| Event | Sent when |
|---|---|
team_member.created | Team member added. A team member was added, including hiring applicants. |
team_member.updated | Team member updated. A team member's role or status changed, or they were reactivated. |
team_member.removed | Team member removed. A team member was deactivated. |
Team payouts
| Event | Sent when |
|---|---|
payout.paid | Team payout paid. A team payout run was paid (or partly failed; each item carries its own status). |
Objects
Every object carries id and object. Examples are real serializer output for sample data, contact details included.
booking
{
"id": "00000000-0000-4000-8000-00000000b001",
"object": "booking",
"status": "confirmed",
"date": "2026-10-13",
"time": "10:00",
"start_time": "2026-10-13T16:00:00Z",
"duration_min": 180,
"timezone": "America/Mexico_City",
"arrival_window": null,
"crew_size": 1,
"location": {
"id": "00000000-0000-4000-8000-00000000a001",
"name": "Sample location"
},
"service": {
"id": "00000000-0000-4000-8000-00000000c001",
"name": "Sample service"
},
"addons": [
{
"key": "inside_fridge",
"quantity": 1
}
],
"total": {
"amount": "1200.00",
"currency": "MXN"
},
"discount": {
"amount": "0.00",
"currency": "MXN"
},
"payment": {
"status": "pending",
"method": "card",
"paid_at": null
},
"crew": [
{
"id": "00000000-0000-4000-8000-00000000e001",
"name": "Sample S."
}
],
"customer": {
"id": "00000000-0000-4000-8000-00000000d001",
"first_name": "Sample",
"last_name": "Client",
"email": "sample.client@example.com",
"phone": "+525500000000"
},
"address": {
"line": "123 Sample Street",
"unit": "1A",
"building": null,
"lat": null,
"lng": null,
"place_id": null,
"maps_url": null
},
"source": "admin",
"quote_id": null,
"attribution": {
"utm_source": null,
"utm_medium": null,
"utm_campaign": null,
"utm_term": null,
"utm_content": null,
"referrer": null,
"landing_page": null
},
"created_at": "2026-10-12T15:04:05Z",
"updated_at": "2026-10-12T15:04:05Z"
}visit_event
{
"id": "00000000-0000-4000-8000-000000002001",
"object": "visit_event",
"booking_id": "00000000-0000-4000-8000-00000000b001",
"step": "on_the_way",
"at": "2026-10-12T15:04:05Z",
"specialist": {
"id": "00000000-0000-4000-8000-00000000e001",
"name": "Sample S."
},
"booking": {
"id": "00000000-0000-4000-8000-00000000b001",
"object": "booking",
"status": "confirmed",
"date": "2026-10-13",
"time": "10:00",
"start_time": "2026-10-13T16:00:00Z",
"duration_min": 180,
"timezone": "America/Mexico_City",
"arrival_window": null,
"crew_size": 1,
"location": {
"id": "00000000-0000-4000-8000-00000000a001",
"name": "Sample location"
},
"service": {
"id": "00000000-0000-4000-8000-00000000c001",
"name": "Sample service"
},
"addons": [
{
"key": "inside_fridge",
"quantity": 1
}
],
"total": {
"amount": "1200.00",
"currency": "MXN"
},
"discount": {
"amount": "0.00",
"currency": "MXN"
},
"payment": {
"status": "pending",
"method": "card",
"paid_at": null
},
"crew": [
{
"id": "00000000-0000-4000-8000-00000000e001",
"name": "Sample S."
}
],
"customer": {
"id": "00000000-0000-4000-8000-00000000d001",
"first_name": "Sample",
"last_name": "Client",
"email": "sample.client@example.com",
"phone": "+525500000000"
},
"address": {
"line": "123 Sample Street",
"unit": "1A",
"building": null,
"lat": null,
"lng": null,
"place_id": null,
"maps_url": null
},
"source": "admin",
"quote_id": null,
"attribution": {
"utm_source": null,
"utm_medium": null,
"utm_campaign": null,
"utm_term": null,
"utm_content": null,
"referrer": null,
"landing_page": null
},
"created_at": "2026-10-12T15:04:05Z",
"updated_at": "2026-10-12T15:04:05Z"
}
}payment
{
"object": "payment",
"booking_id": "00000000-0000-4000-8000-00000000b001",
"status": "paid",
"amount": {
"amount": "1200.00",
"currency": "MXN"
},
"method": "card",
"paid_at": "2026-10-12T15:04:05Z",
"refunded": {
"amount": "0.00",
"currency": "MXN"
},
"refunds": []
}customer
{
"id": "00000000-0000-4000-8000-00000000d001",
"object": "customer",
"first_name": "Sample",
"last_name": "Client",
"email": "sample.client@example.com",
"phone": "+525500000000",
"preferred_lang": "en",
"tags": [
"vip"
],
"active": true,
"location_id": "00000000-0000-4000-8000-00000000a001",
"total_bookings": 3,
"created_at": "2026-09-01T18:20:00Z",
"updated_at": "2026-10-12T15:04:05Z"
}lead
{
"id": "00000000-0000-4000-8000-000000003001",
"object": "lead",
"source": "api",
"status": "open",
"location": {
"id": "00000000-0000-4000-8000-00000000a001",
"name": "Sample location"
},
"contact": {
"name": "Sample Client",
"email": "sample.client@example.com",
"phone": "+525500000000"
},
"total": null,
"duration_min": null,
"lang": null,
"booking_id": null,
"attribution": {
"utm_source": "Facebook Lead Ads",
"utm_medium": null,
"utm_campaign": null,
"utm_term": null,
"utm_content": null,
"referrer": null,
"landing_page": null
},
"created_at": "2026-10-12T15:04:05Z"
}quote
{
"id": "00000000-0000-4000-8000-000000004001",
"object": "quote",
"number": 1042,
"status": "sent",
"location": {
"id": "00000000-0000-4000-8000-00000000a001",
"name": "Sample location"
},
"customer": {
"id": "00000000-0000-4000-8000-00000000d001",
"name": "Sample Client",
"email": "sample.client@example.com",
"phone": "+525500000000"
},
"address": {
"label": "Home",
"line": "123 Sample Street"
},
"title": "Move-out service",
"lang": "en",
"items": [
{
"label": "Move-out service",
"description": "3 bedrooms",
"quantity": 1,
"unit_amount": {
"amount": "1800.00",
"currency": "MXN"
},
"total": {
"amount": "1800.00",
"currency": "MXN"
},
"complimentary": false
}
],
"subtotal": {
"amount": "1800.00",
"currency": "MXN"
},
"discount": {
"amount": "0.00",
"currency": "MXN"
},
"tax": {
"amount": "0.00",
"currency": "MXN"
},
"total": {
"amount": "1800.00",
"currency": "MXN"
},
"deposit": null,
"duration_min": 240,
"valid_until": "2026-10-26",
"sent_at": "2026-10-12T15:04:05Z",
"decided_at": null,
"booking_id": null,
"invoice_id": null,
"lead_id": null,
"created_at": "2026-10-11T17:00:00Z",
"updated_at": "2026-10-12T15:04:05Z"
}invoice
{
"id": "00000000-0000-4000-8000-000000005001",
"object": "invoice",
"kind": "invoice",
"number": 318,
"status": "paid",
"customer": {
"id": "00000000-0000-4000-8000-00000000d001",
"first_name": "Sample",
"last_name": "Client",
"email": "sample.client@example.com",
"phone": "+525500000000"
},
"booking_id": "00000000-0000-4000-8000-00000000b001",
"quote_id": null,
"location_id": "00000000-0000-4000-8000-00000000a001",
"currency": "MXN",
"issue_date": "2026-10-12",
"due_date": "2026-10-19",
"expires_at": null,
"line_items": [
{
"description": "Sample service",
"quantity": 1,
"unit_amount": {
"amount": "1200.00",
"currency": "MXN"
},
"amount": {
"amount": "1200.00",
"currency": "MXN"
}
}
],
"subtotal": {
"amount": "1200.00",
"currency": "MXN"
},
"discount": {
"amount": "0.00",
"currency": "MXN"
},
"deposit_credit": {
"amount": "0.00",
"currency": "MXN"
},
"total": {
"amount": "1200.00",
"currency": "MXN"
},
"sent_at": "2026-10-12T15:04:05Z",
"paid_at": "2026-10-12T15:04:05Z",
"paid_channel": "stripe",
"created_at": "2026-10-12T15:04:05Z",
"updated_at": "2026-10-12T15:04:05Z"
}recurring_plan
{
"id": "00000000-0000-4000-8000-000000006001",
"object": "recurring_plan",
"active": true,
"frequency": "biweekly",
"interval_weeks": 2,
"day_of_week": 2,
"time": "10:00",
"timezone": "America/Mexico_City",
"starts_on": "2026-10-13",
"ends_on": null,
"location": {
"id": "00000000-0000-4000-8000-00000000a001",
"name": "Sample location"
},
"service": {
"id": "00000000-0000-4000-8000-00000000c001",
"name": "Sample service"
},
"addons": [],
"visit_price": {
"amount": "1080.00",
"currency": "MXN"
},
"discount_pct": 10,
"visit_duration_min": 180,
"payment_method": "card",
"membership": false,
"customer": {
"id": "00000000-0000-4000-8000-00000000d001",
"first_name": "Sample",
"last_name": "Client",
"email": "sample.client@example.com",
"phone": "+525500000000"
},
"address": {
"unit": "1A"
},
"created_at": "2026-10-12T15:04:05Z",
"updated_at": "2026-10-12T15:04:05Z"
}rating
{
"id": "00000000-0000-4000-8000-000000007001",
"object": "rating",
"booking_id": "00000000-0000-4000-8000-00000000b001",
"location_id": "00000000-0000-4000-8000-00000000a001",
"stars": 5,
"comment": "Great job, thank you.",
"customer": {
"id": "00000000-0000-4000-8000-00000000d001",
"first_name": "Sample",
"last_name": "Client"
},
"created_at": "2026-10-12T15:04:05Z"
}team_member
{
"id": "00000000-0000-4000-8000-00000000e001",
"object": "team_member",
"name": "Sample Specialist",
"email": "sample.specialist@example.com",
"phone": "+525500000001",
"role": "Specialist",
"member_status": "active",
"active": true,
"all_locations": true,
"invited_at": "2026-09-01T15:00:00Z",
"accepted_at": "2026-09-02T15:00:00Z",
"created_at": "2026-09-01T15:00:00Z",
"updated_at": "2026-10-12T15:04:05Z"
}payout
{
"id": "00000000-0000-4000-8000-000000008001",
"object": "payout",
"status": "paid",
"period": {
"kind": "weekly",
"start": "2026-10-05",
"end": "2026-10-11"
},
"total": {
"amount": "3500.00",
"currency": "MXN"
},
"fee": null,
"approved_at": "2026-10-12T15:04:05Z",
"items": [
{
"id": "00000000-0000-4000-8000-000000008002",
"member": {
"id": "00000000-0000-4000-8000-00000000e001",
"name": "Sample S."
},
"kind": "earnings",
"amount": {
"amount": "3500.00",
"currency": "MXN"
},
"status": "paid",
"method": "bank_transfer",
"failure_code": null,
"paid_at": "2026-10-12T15:04:05Z"
}
],
"created_at": "2026-10-12T15:04:05Z",
"updated_at": "2026-10-12T15:04:05Z"
}Verify signatures
Check every delivery before you trust it. The signature is an HMAC-SHA256, keyed with the base64-decoded part of your secret after whsec_, over <webhook-id>.<webhook-timestamp>.<raw body>, base64-encoded and prefixed with v1,. This is the Standard Webhooks scheme, so their libraries work too.
Node.js, no dependencies:
import { createHmac, timingSafeEqual } from 'node:crypto';
const TOLERANCE_SECONDS = 300;
/**
* True when a delivery was signed with your endpoint's secret and is recent.
* secret your endpoint's signing secret, "whsec_..."
* headers the request headers, lower-case names
* rawBody the request body exactly as received, before JSON.parse
*/
export function verifyWebhook(secret, headers, rawBody, nowMs = Date.now()) {
const id = String(headers['webhook-id'] ?? '');
const timestamp = String(headers['webhook-timestamp'] ?? '');
const signatures = String(headers['webhook-signature'] ?? '');
// Refuse old or future-dated deliveries (replay protection).
const age = Math.abs(nowMs / 1000 - Number(timestamp));
if (timestamp === '' || Number.isNaN(age) || age > TOLERANCE_SECONDS) return false;
const key = Buffer.from(secret.replace(/^whsec_/, ''), 'base64');
const expected = createHmac('sha256', key).update(`${id}.${timestamp}.${rawBody}`).digest();
// During a secret rotation the header carries two signatures: "v1,<a> v1,<b>".
return signatures.split(' ').some((entry) => {
const [version, value = ''] = entry.split(',');
const given = Buffer.from(value, 'base64');
return version === 'v1' && given.length === expected.length && timingSafeEqual(given, expected);
});
}
In an Express route
import express from 'express';
import { verifyWebhook } from './verify-webhook.js';
const app = express();
// Keep the raw bytes: the signature covers the body exactly as sent.
app.post('/webhooks/qtana', express.text({ type: 'application/json' }), (req, res) => {
if (verifyWebhook(process.env.WEBHOOK_SECRET, req.headers, req.body) === false) {
return res.status(401).end();
}
const event = JSON.parse(req.body);
// Deduplicate on event.id (also sent as webhook-id), then queue the work.
res.status(204).end();
});
- Sign the raw body, byte for byte. Parsing and re-serializing the JSON changes it and the check fails.
- Compare in constant time (
timingSafeEqual), and refuse old timestamps so a captured request cannot be replayed. - During a secret rotation the header carries two signatures, the new and the old one, so either secret verifies for the overlap.
Retries
A failed delivery is retried on this schedule: 8 attempts over about 28 hours. After the last one the delivery is marked failed.
An admin can resend any failed or delivered event from the delivery log. A resend uses the same webhook-id and the same body.
| Attempt | After the previous | Since the first |
|---|---|---|
| 1 | immediately | 0 min |
| 2 | 1 min | 1 min |
| 3 | 5 min | 6 min |
| 4 | 30 min | 36 min |
| 5 | 2 h | 2 h 36 min |
| 6 | 5 h | 7 h 36 min |
| 7 | 10 h | 17 h 36 min |
| 8 | 10 h | 27 h 36 min |
Endpoints that are turned off
- An answer of
410 Goneturns the endpoint off at once. - An endpoint that has failed 50 times in a row, with the first of those failures more than 24 hours ago, is turned off.
- Either way its waiting deliveries are dropped and the workspace admins get an alert. An admin can turn it back on in the Webhooks panel. An endpoint is also turned off when the plan no longer includes webhooks, and when the API key that created it is revoked.
Good practice
- Answer fast: return
2xxas soon as the delivery is verified and stored, and do the work afterwards. The timeout is 10 seconds. - Deduplicate on
id(thewebhook-idheader). The same event can arrive more than once: after a timeout, a retry or a resend. - Do not rely on order. Deliveries can arrive out of order; use
occurred_at, or the object’supdated_at, and ignore an event older than what you already have. When in doubt, read the current object from the API. - One endpoint can receive many event types: branch on
type. - Send test event in the admin delivers a
webhook.testevent around a sample booking, with"test": trueindata. It is not a subscribable event. - Rotate the secret of an endpoint added in the admin at any time; the old one keeps signing for 24 hours.