An API key is a long secret code that your software sends with each request to prove it is allowed to read your Bookingly data. Each key belongs to your business and can only ever see your business's data.
Create a key
- Go to Settings > Integrations, then open Developer API under For developers.
- Under Create an API key, type a name that tells you what the key is for, such as
Website sync. - Tick only what the key needs to do. See the table below. The read permissions start ticked. Permissions that add or change things are never ticked for you.
- Select Create key.
- Copy the key straight away and store it somewhere safe, such as your software's secret settings.
The key is shown once. Bookingly keeps only a scrambled version of it, so it can't be shown again. If you lose it, revoke it and create a new one.
You need permission to edit the business details to see this page. If you can't see Developer API, ask the account owner.
What a key can do
Permission | What the key can read |
|---|---|
Read services | Service names, descriptions, durations and prices |
Read staff | Staff names, titles, descriptions and photos |
Read locations | Locations and their addresses |
Read availability | The times a service can be booked |
Read courts and facilities | Your courts and facilities, their prices, and the times they can be booked |
Read customers | Customer names, email addresses and phone numbers |
Read bookings | Bookings and court bookings, including who they are for, and the reasons for cancelling |
Add and change customers | Create customers and update their details and contact preferences |
Make, move and cancel bookings | Create bookings and court bookings, move appointments to another time and cancel bookings |
Give each piece of software its own key with the fewest permissions it needs. A key that can only read services can't see a single customer, so a leak does much less harm. A key that can make and cancel bookings can change your calendar, so keep those keys especially safe.
The permissions are separate. A key that can make bookings can't read your customers unless you also tick Read customers.
Use your key
Send it in an Authorization header with the word Bearer in front:
Authorization: Bearer bkly_live_your_key_hereNever put a key in a web page, a mobile app, or anywhere a visitor could see it. Keys are for software that runs on a server you control.
See which keys you have
The Your API keys list shows each key's name, the first few characters (so you can recognise it), what it can do, when it was created and when it was last used. Last used is approximate and is updated every few minutes.
A key that has never been used, or hasn't been used in a long time, is usually safe to revoke.
Revoke a key
Select Revoke next to the key, then Yes, revoke. The key stops working straight away, and anything still using it will start getting 401 Unauthorized errors. Revoked keys stay in the list for 30 days so you can see what happened.
If you think a key has been shared or leaked, revoke it first, then create a replacement.
Limits
- You can have up to 10 active keys. Revoke one you no longer use to make room.
- Each key can make up to 120 requests a minute. See Errors and rate limits.