Build on your bookings
REST API and signed webhooks for your Bookzo account.
Everything here works on both plans. Create a token and set your webhook in Settings in your dashboard.
Reference pages
- Authentication: How to get a token and call the API.
- GET /api/v1/me: Your profile and plan.
- GET /api/v1/event_types: List your event types.
- GET /api/v1/availability: Open start times for an event type.
- GET /api/v1/bookings: List bookings by status.
- POST /api/v1/bookings/{token}/cancel: Cancel a booking.
- Webhooks: Be told when a booking changes.
Authentication
Base address: https://bookzo.xyz/api/v1. Send your token with every request.
curl https://bookzo.xyz/api/v1/me \ -H "Authorization: Bearer YOUR_TOKEN"
A missing or wrong token returns status 401 with an error message. Successful answers are JSON with a data field.
GET /api/v1/me
{"data":{"handle":"yourname","name":"Your Name",
"email":"[email protected]","time_zone":"Australia/Sydney",
"plan":"free","url":"https://bookzo.xyz/yourname"}}GET /api/v1/event_types
{"data":[{"slug":"30min","title":"30 Minute Meeting",
"duration_minutes":30,"active":true,
"url":"https://bookzo.xyz/yourname/30min"}]}GET /api/v1/availability?event=slug
Open start times for one event type, in UTC (up to 600).
{"data":[{"start":"2027-01-12T23:00:00.000Z","spots_left":1}]}GET /api/v1/bookings?status=upcoming
Status can be upcoming, past or cancelled. Returns a list of booking objects (up to your latest 500).
{"data":[{
"id":"BOOKING_TOKEN","status":"active",
"event":"30min","title":"30 Minute Meeting",
"start":"2027-01-12T23:00:00.000Z",
"end":"2027-01-12T23:30:00.000Z",
"invitee":{"name":"Sam Lee","email":"[email protected]",
"time_zone":"Europe/London","phone":null},
"guests":[],"answers":[["What is the goal?","Plan Q1"]],
"note":"","paid":false,
"url":"https://bookzo.xyz/b/BOOKING_TOKEN"}]}POST /api/v1/bookings/{token}/cancel
Cancels the booking with that id and returns it with status cancelled.
curl -X POST https://bookzo.xyz/api/v1/bookings/BOOKING_TOKEN/cancel \ -H "Authorization: Bearer YOUR_TOKEN"
Webhooks
Bookzo sends a POST to your address for booking.created, booking.rescheduled and booking.cancelled.
{"event":"booking.created","sent":"2027-01-10T04:12:00.000Z",
"booking":{ ...the booking object above... }}Each event is sent once, with an 8 second time limit and without following redirects.
Verify the signature
The x-bookzo-signature header is the hex HMAC-SHA256 of the raw request body, using your webhook secret.
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);
}Website embeds
To show a booking calendar on a site, use the embed script.
Quick start
- Open Settings in your dashboard and press Create token. Copy it straight away.
- Call /api/v1/me to confirm the token works.
- Save a webhook address if you want to hear about changes as they happen.
- Make a test booking on your own page, then cancel it, and watch both events arrive.
The booking object
| Field | Contains |
|---|---|
| id | The booking code, used to cancel it |
| status | active or cancelled |
| event, title | The event type link name and its title |
| start, end | ISO 8601 times in UTC |
| invitee | name, email, time_zone and phone |
| guests | Extra email addresses |
| answers | Pairs of question and answer |
| note | The guest's open note |
| paid | true when the host has marked it paid |
| url | The booking's confirmation page |
Errors
| Status | When | What to do |
|---|---|---|
| 401 | Token missing or wrong | Send the Authorization header, or create a new token |
| 404 | Unknown address, event or booking | Check the path and the event link name |
Webhook delivery
Each request has three top-level fields: event, sent and booking. Answer quickly and do slow work afterwards. A delivery is attempted once, so if your server may have been down, compare with GET /api/v1/bookings.
Example: verify a webhook in Python
import hashlib, hmac
def from_bookzo(raw_body: bytes, header: str, secret: str) -> bool:
expected = hmac.new(secret.encode(), raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, header or "")Example: list upcoming meetings in JavaScript
const res = await fetch("https://bookzo.xyz/api/v1/bookings?status=upcoming", {
headers: { Authorization: "Bearer " + process.env.BOOKZO_TOKEN }
});
if (!res.ok) throw new Error("Bookzo " + res.status);
const { data } = await res.json();
for (const b of data) console.log(b.start, b.title, b.invitee.name);Run this on a server. Never put your token in a web page.
Embed script reference
<script src="https://bookzo.xyz/embed.js"></script>
| Use | What it does |
|---|---|
| class bookzo-inline with data-url | Places the calendar inside that element |
| class bookzo-popup on a link | Opens the link's calendar over the page |
| data-float on the script tag | Adds a floating button that opens that address |
| data-text and data-color on the script tag | Sets the floating button's words and colour |
| Bookzo.popup(address) | Opens the pop-up from your own script |
Calendar feed
Every account also has a private ICS feed of its bookings, found under Calendars. Any program that reads iCalendar files can subscribe to it. It is a good fit when you only need to see meetings, without writing code.
Share one link. Get booked.
Free to start, with every feature. Pro is US$0.99 a month.