These examples use curl so you can try them straight away. Replace bkly_live_your_key_here with your own key, and use the API address shown on your Developer API settings page.
Each example says which permission the key needs.
List your services
Needs Read services.
curl "https://app.bookingly.com/api/v1/services?limit=100" \
-H "Authorization: Bearer bkly_live_your_key_here"Each service has an id, a name, a durationMinutes and a price. You need the ids for the availability example below.
Find a customer by email
Needs Read customers.
curl "https://app.bookingly.com/api/v1/customers?email=kiri.wong@example.com" \
-H "Authorization: Bearer bkly_live_your_key_here"To search by part of a name, email or phone number, use q instead of email:
curl "https://app.bookingly.com/api/v1/customers?q=kiri" \
-H "Authorization: Bearer bkly_live_your_key_here"To read only customers added since a moment, use createdFrom. This suits a regular job that copies new customers somewhere else:
curl "https://app.bookingly.com/api/v1/customers?createdFrom=2026-11-01T00:00:00Z" \
-H "Authorization: Bearer bkly_live_your_key_here"Read next week's bookings
Needs Read bookings.
curl "https://app.bookingly.com/api/v1/bookings?from=2026-11-16&to=2026-11-22&status=confirmed" \
-H "Authorization: Bearer bkly_live_your_key_here"from and to are dates at each booking's own location, and both days are included. status can be pending, confirmed, arrived, started, did-not-show, cancelled or completed. You can also narrow by locationId or customerId.
A booking looks like this:
{
"id": 428,
"reference": "FB01501C",
"status": "confirmed",
"locationId": 61,
"timezone": "Pacific/Auckland",
"startsAt": "2026-11-11T09:00:00",
"endsAt": "2026-11-11T10:00:00",
"startsAtUtc": "2026-11-10T20:00:00.000Z",
"endsAtUtc": "2026-11-10T21:00:00.000Z",
"createdAt": "2026-11-03T10:20:12.813Z",
"notes": null,
"isRecurring": false,
"services": [
{
"serviceId": 77,
"serviceName": "Women's Cut & Style",
"startsAt": "2026-11-11T09:00:00",
"endsAt": "2026-11-11T10:00:00",
"startsAtUtc": "2026-11-10T20:00:00.000Z",
"endsAtUtc": "2026-11-10T21:00:00.000Z",
"staff": [{ "id": 1068, "name": "Amelia Hart" }]
}
],
"customers": [{ "id": 264, "name": "Aiden Mitchell", "email": "aiden.mitchell@example.com" }]
}See Pagination, dates and times for how the times work and how to read more than one page.
Check available times
Needs Read availability.
curl "https://app.bookingly.com/api/v1/availability?locationId=61&serviceIds=73&date=2026-11-18" \
-H "Authorization: Bearer bkly_live_your_key_here"locationIdandserviceIdsare required. Give several services asserviceIds=73,74.dateis the day to check, asyyyy-MM-dd.- Add
staffIdto see times for one staff member only.
The answer lists the times a customer could book, the way your online booking page would offer them:
{
"locationId": 61,
"timezone": "Pacific/Auckland",
"date": "2026-11-18",
"times": [
{ "date": "2026-11-18", "time": "13:00", "spotsRemaining": null },
{ "date": "2026-11-18", "time": "14:00", "spotsRemaining": null }
]
}time is the wall-clock time at the location in 24-hour form. spotsRemaining is only set for group sessions. It is null for ordinary one-to-one appointments.
Add a customer
Needs Add and change customers.
curl -X POST https://app.bookingly.com/api/v1/customers \
-H "Authorization: Bearer bkly_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"firstName": "Kiri",
"lastName": "Wong",
"email": "kiri.wong@example.com",
"mobileNumber": "+64215550201"
}'firstName is the only required field. A mobile number must be international, starting with + and the country code. If a customer with that email already exists you get a 409 that names the existing customer, so you can use that customer instead.
New customers are recorded as not agreeing to marketing messages. Only send "emailMarketing": true or "smsMarketing": true when the customer has agreed to receive them. They still receive booking confirmations and reminders, unless you send "emailNotifications": false or "smsNotifications": false.
To change a customer, send only the fields to change:
curl -X PATCH https://app.bookingly.com/api/v1/customers/220 \
-H "Authorization: Bearer bkly_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{ "mobileNumber": "+64215550202", "lastName": null }'For lastName, email and mobileNumber, null or an empty string clears the value. Whether a customer is blocked can only be changed in Bookingly.
Make a booking
Needs Make, move and cancel bookings.
First find a time that is available (see above), then book it:
curl -X POST https://app.bookingly.com/api/v1/bookings \
-H "Authorization: Bearer bkly_live_your_key_here" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 6f1c2b9e-3d1a-4c55-9b0e-0d6a4f7c1a11" \
-d '{
"customerId": 220,
"locationId": 61,
"serviceIds": [73],
"startsAt": "2026-11-18T14:00:00",
"notes": "First visit"
}'startsAtis the local time at the location, with no offset orZ.- Several
serviceIdsare booked one after another from that time, with the same staff member. - Add
"staffId": 1068to choose the staff member. Otherwise the best available one is used. statuscan beconfirmed(the default) orpending.- The customer gets the usual confirmation email, and any forms, unless you add
"sendNotifications": false.
You get 201 Created and the booking, as in the example above. If the time can't be booked you get a 409.
Move a booking
Needs Make, move and cancel bookings.
curl -X PATCH https://app.bookingly.com/api/v1/bookings/428 \
-H "Authorization: Bearer bkly_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{ "startsAt": "2026-11-19T10:30:00" }'The services, staff and lengths stay the same and everything moves by the same amount. This works for a pending or confirmed booking that hasn't started. You get a 409 if the staff member is already booked at the new time. As when you move a booking in the calendar, working hours and closed dates aren't checked. Bookings in a repeating series can't be moved through the API. The customer is told about the new time unless you add "sendNotifications": false.
Cancel a booking
Needs Make, move and cancel bookings.
curl -X POST https://app.bookingly.com/api/v1/bookings/428/cancel \
-H "Authorization: Bearer bkly_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{ "cancellationReasonId": 1213 }'The reason is optional. Get the reasons you can use from GET /v1/cancellation-reasons. Only the one booking is cancelled, never the rest of a repeating series. A booking that has already started, or that was paid for online, can't be cancelled through the API. Cancelling a booking that is already cancelled succeeds and changes nothing.
A small script
This JavaScript reads every customer, one page at a time:
const base = "https://app.bookingly.com/api";
const headers = { Authorization: "Bearer " + process.env.BOOKINGLY_API_KEY };
async function allCustomers() {
const customers = [];
let cursor = null;
do {
const url = new URL(base + "/v1/customers");
url.searchParams.set("limit", "200");
if (cursor) url.searchParams.set("cursor", cursor);
const response = await fetch(url, { headers });
if (response.status === 429) {
const wait = Number(response.headers.get("Retry-After") || 5);
await new Promise((resolve) => setTimeout(resolve, wait * 1000));
continue;
}
if (!response.ok) throw new Error(await response.text());
const page = await response.json();
customers.push(...page.data);
cursor = page.nextCursor;
} while (cursor);
return customers;
}Keep the key in an environment variable or your platform's secret store, as above, and never in the code itself.