The Bookingly Developer API lets your own software work with your Bookingly data. It can read your services, staff, locations, customers and bookings, check the times a customer could book, add and update customers, make, move and cancel bookings, and tell your software when a booking or customer changes. For Sports & Facilities businesses it also works with courts and facilities. It is a standard REST API that sends and receives JSON, so you can use it from any programming language, from a no-code tool that can make web requests, or from the command line.
Before you start
You need:
- A Bookingly account where you can edit the business details (the owner can always do this).
- An API key. See Create and manage API keys.
Make your first request
Every request goes to the API address shown on your Settings > Integrations > Developer API page, and carries your key in an Authorization header.
This request asks for your business:
curl https://app.bookingly.com/api/v1/business \
-H "Authorization: Bearer bkly_live_your_key_here"You should get something like this back:
{
"name": "Bloom Hair & Beauty Studio",
"website": "https://www.bloomhairbeauty.example.com",
"currencyCode": "NZD",
"businessType": "services"
}If you see that, your key works. If you see an error, see Errors and rate limits.
What you can do
Address | What it does | Permission the key needs |
|---|---|---|
| Your business name, currency and type | Any key |
| Services, with duration and price | Read services |
| Staff names, titles and photos | Read staff |
| Locations and their addresses | Read locations |
| Customers, including email and phone | Read customers |
| Add a customer | Add and change customers |
| Change a customer's details | Add and change customers |
| Bookings, with services, staff and customers | Read bookings |
| The reasons you can give when cancelling | Read bookings |
| The times a service can be booked on a day | Read availability |
| Make a booking | Make, move and cancel bookings |
| Move a booking to another time | Make, move and cancel bookings |
| Cancel a booking | Make, move and cancel bookings |
Staff email addresses and phone numbers are never included.
For a Sports & Facilities business, courts and facilities have their own addresses: see Courts and facilities.
How bookings made through the API behave
A booking made through the API goes through the same booking engine as your online booking page. The time has to be one that your booking page would offer, so working hours, existing bookings, how soon and how far ahead customers can book, group class places and your free plan's monthly booking limit all apply. The customer receives the same confirmation email, and any forms for the service, unless you ask for no notifications.
Bookings made through the API are made without online payment, as if a member of your team had entered them. A booking that was paid for online can't be cancelled through the API, because the payment needs refunding in Bookingly.
Be told when things change
Instead of asking the API again and again whether anything has changed, you can have Bookingly send your software a message when a booking is made, changed or cancelled, or a customer is added. These messages are called webhooks. See Webhooks.
The full reference
The interactive reference lists every address, every field and every error, and lets you try requests from your browser. It is built from the API itself, so it always matches what the API does. Open it at /reference on the API address, for example https://app.bookingly.com/api/reference. The machine-readable OpenAPI description is at /openapi/v1.json, which you can load into tools such as Postman or a code generator.