The session feed gives you a complete snapshot of your group sessions in one request. Use it to fill your own timetable the first time, and to check it against Booklink every so often. Webhooks then keep it up to date between those checks.
Pro feature
The session feed is available on Pro. On a free account the request is refused with a 402 error asking you to upgrade.Get your API key
- 1
Open the Webhooks page
Click Webhooks in the sidebar, under the Settings section. - 2
Find the API access card
Your key starts withsk_. It is hidden by default. Click the eye icon to reveal it and the copy icon to copy it. If the card says you have no API key yet, click Generate key first. Only the account admin can see or change the key; other users see a note saying so.
Keep the key secret
Anyone with the key can read your schedule and your sales report from the API. Store it in an environment variable or secret manager on your server, never in a web page. If it leaks, click Regenerate key and confirm. The old key stops working immediately, so update your server straight away.Make a request
Send a GET request to the feed and pass your key in the Authorization header:
curl "https://api.booklink.co.za/session/feed" \
-H "Authorization: Bearer sk_your_key_here"With no options you get every group session from now until 60 days ahead. To choose a different window, add from and to:
curl "https://api.booklink.co.za/session/feed?from=2026-09-01T00:00:00Z&to=2026-09-30T23:59:59Z" \
-H "Authorization: Bearer sk_your_key_here"| Option | What it does |
|---|---|
from | Start of the window, as an RFC 3339 timestamp such as 2026-09-01T00:00:00Z. Defaults to now. It can be in the past. |
to | End of the window, in the same format. Defaults to 60 days after from. |
The window can be at most 90 days wide. A wider one is refused with a validation error, so ask for it in parts if you need more.
Encode a plus sign in the time zone
In a URL, a+ means a space, so a South African time such as 2026-09-01T00:00:00+02:00 must be written 2026-09-01T00:00:00%2B02:00. The simplest fix is to use UTC with a Z at the end, as in the examples above.What comes back
The feed returns every group session that overlaps the window, in every status, ordered by start time. A multi-day session that began before from but is still running is included. 1:1 appointments are not part of the feed.
{
"as_of": "2026-09-01T07:35:00.412Z",
"sessions": [
{
"id": "6VqT3mNk8LpR2XcB",
"service_id": "2VnJ7kQx4LmT8pRc",
"service_name": "Morning Pilates",
"team_member_id": "7XcT2mQk9nLp4VrB",
"team_member_name": "Thandi Nkosi",
"room_id": "3JbN8vQt5mXd2LcR",
"recurrence_id": "9KxT4mQp2LvN7RcB",
"start_time": "2026-09-08T06:00:00Z",
"end_time": "2026-09-08T06:45:00Z",
"capacity": 20,
"seats_booked": 14,
"seats_available": 6,
"status": "scheduled",
"created": "2026-08-29T09:00:00.214Z",
"updated": "2026-09-01T07:31:12.388Z"
}
]
}Unlike a webhook, the response is not wrapped in an envelope. as_of is the time Booklink took the snapshot, and each entry in sessions has exactly the same fields as the data of a session webhook. See the event reference for what each field means. Like the webhook payload, it holds no customer details or meeting links.
Keeping your copy in sync
Use the feed together with the four session.* webhook events. The feed gives you the full picture, and the events keep it current between reads.
- 1
Seed from the feed
Read the feed once and store every session, keyed by itsid. Remember each session’supdatedvalue. - 2
Apply webhook events as they arrive
Forsession.createdandsession.updated, save the session unless itsupdatedis older than the one you hold. If the two are equal, keep the event with the newer envelopecreated, because a rename arrives with an unchangedupdated. Forsession.deleted, remove it. Treat asession.cancelledsession as cancelled and decide whether your timetable should still show it. - 3
Re-read the feed every night
Run the same request on a schedule, for example once a night. Replace everything you hold inside that window with what the feed returns. This recovers any event that never arrived, including a deleted session, because a deleted session is simply missing from the feed. - 4
Keep newer webhook data
If a webhook arrives while you are replacing the window, ignore it only when itsupdatedis older than the feed’s copy. Otherwise keep the webhook version. Compareupdated, never the time you received the request.
Handle renames
A rename of a service or team member arrives assession.updated with the same updated as before. See the event reference for how to order those.Reading the sales report
The same API key can also read your Sales report, the money you received by the date it came in, net of refunds. This suits a dashboard or a spreadsheet that pulls your takings. See The Sales report for what counts.
curl "https://api.booklink.co.za/report/sales?from=2026-11-01T00:00:00Z&to=2026-12-01T00:00:00Z" \
-H "Authorization: Bearer sk_your_key_here"from and to are RFC 3339 timestamps, and the range can be at most one year. The response has the totals, a net amount for each payment method and one row for each payment or refund. Refunds are negative amounts. Like the session feed, it needs Pro.
If a request fails
- 401 Unauthorized
- The key is missing, mistyped, or has been regenerated. Check that the header reads
Authorization: Bearer sk_...and that you are using the current key from the API access card. - 402 Payment required
- The account is not on Pro.
- A validation error on
fromorto - The timestamp is not valid RFC 3339,
tois not afterfrom, or the window is wider than 90 days.