Skip to content

Webhooks for developers

For group owners. Send new, changed and cancelled bookings to your own systems as signed JSON, verify the signature, handle retries and see the delivery log.

Applies to the web

A webhook is a web address of yours that Tidbok calls when something happens, so your own software (a CRM, a spreadsheet script, Zapier) can react. Only a group owner can add webhooks, because they carry customer names, emails and phone numbers. Manage them under Manage group → Share & embed → Webhooks.

Add one

  1. Choose Add webhook and enter your address. It must start with https:// and be reachable from the internet. Addresses that point to private or internal networks are refused.
  2. Choose the events you want.
  3. Copy the signing secret when it is shown. It is shown once. If you lose it, Rotate secret makes a new one and the old one stops working immediately.

Use Send test to see your endpoint answer a ping.

Events

  • booking.created: a booking is made, by a member, an admin or a customer.
  • booking.updated: a booking is approved, moved, paid, refunded, checked in or marked as a no-show.
  • booking.cancelled: a booking is cancelled, declined or bumped.
  • event.updated: a group event is created or changed.

Each delivery is a POST with a JSON body made of:

  • id: the event id, the same on every retry.
  • type: one of the events above (or ping for a test).
  • createdAt, groupId.
  • data: for bookings, a booking with its id, status, startsAt, endsAt, timezone, resource, service, partySize, totalCents, paidCents, refundedCents, channel and the customer (name, email, phone). For events, an event with its title, times and place.

Amounts are whole cents. Treat the customer details as personal data: store only what you need.

Verify every request

Each request has these headers:

  • Tidbok-Signature in the form t=UNIX_SECONDS,v1=HEX.
  • Tidbok-Event-Id: the same id on every retry of the same event.
  • Tidbok-Event-Type.

To verify a request:

  1. Read the raw request body exactly as received (not re-serialised JSON).
  2. Compute an HMAC-SHA256, with your signing secret as the key, of the text t, a full stop, then the raw body. Write it as lowercase hex.
  3. Compare it with v1 using a constant-time comparison.
  4. Reject the request if t is more than 5 minutes away from your clock. This stops someone replaying an old request.

Answer quickly, and expect repeats

Answer with any 2xx within 8 seconds. Anything else (or no answer) is a failure and Tidbok retries with growing gaps (30 seconds, 1 minute, 2 minutes and so on, up to 6 hours between tries) for up to 8 attempts. Delivery is at least once, so you may receive the same event twice: use Tidbok-Event-Id to ignore repeats.

After 12 failures in a row Tidbok switches the webhook off and tells the owners. Fix your endpoint and switch it back on; only events from that moment on are sent.

The delivery log

The log shows each delivery with its status, the answer code and the last error, and keeps 30 days. Redeliver sends a failed one again from the start. If a customer deletes their account, their details are removed from stored deliveries, which can then no longer be redelivered.

Last reviewed November 8, 2026

Did this help?

Still stuck?

Contact support or email support@tidbok.com. A person will reply within one business day.

← All help topics