Developers / Webhooks
API reference

Webhooks

Be told when a booking changes.

Set one webhook address in Settings. Bookzo sends a POST for booking.created, booking.rescheduled and booking.cancelled. Each event is sent once, with an 8 second time limit and without following redirects.

Payload

POST /your-endpoint
x-bookzo-signature: 9f2c...

{"event":"booking.created","sent":"2027-01-10T04:12:00.000Z",
 "booking":{ ...the booking object from GET /bookings... }}

Verify the signature

The x-bookzo-signature header is the hex HMAC-SHA256 of the raw request body, using your webhook secret. Check it on the raw bytes, before you parse the JSON.

const crypto = require("crypto");
function fromBookzo(rawBody, header, secret) {
  const expected = crypto.createHmac("sha256", secret)
    .update(rawBody).digest("hex");
  const a = Buffer.from(expected), b = Buffer.from(header || "");
  return a.length === b.length && crypto.timingSafeEqual(a, b);
}
import hmac, hashlib
def from_bookzo(raw_body, header, secret):
    expected = hmac.new(secret.encode(), raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, header or "")

Respond quickly

Bookzo waits up to 8 seconds and sends each event once, so do slow work after you answer. You can always read bookings later with GET /api/v1/bookings.

Build on your bookings

The API and webhooks are in the Free plan.