← API Reference

Getting Started

Integrate Bookr bookings into your website in three steps.

Step 1: Get Your API Key

  1. Ask the workspace admin to create a Partner for your organisation in the Bookr dashboard under Partners → New Partner.
  2. On the partner detail page, click “Generate New Key”.
  3. Copy the API key immediately — it is shown only once and cannot be retrieved later.

Step 2: Embed the Booking Widget

Copy the iframe code from the partner detail page (under “Embed Code”) and paste it into your website HTML:

<iframe
  src="https://bookr.app/embed/your-workspace?key=YOUR_API_KEY"
  width="100%"
  height="600"
  frameborder="0"
></iframe>

URL Parameters

ParameterRequiredDescription
keyYesYour API key. Scopes the catalog to items assigned to your partner account.
itemNoPre-select a specific bookable item by ID.
categoryNoFilter items to a specific category ID.
refNoYour internal reference. Stored with the booking for tracking.
callbackNoURL to redirect the user to after booking. The booking number is appended as ?bookingNumber=...
nameNoPre-fill the booker's name.
emailNoPre-fill the booker's email.
phoneNoPre-fill the booker's phone number.

Step 3: Handle the Callback

After a successful booking, the user is redirected to your callback URL with the booking number appended:

https://yoursite.com/booking-complete?bookingNumber=HTL-20260401-A1B2

Use the public API to fetch booking details:

curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://bookr.app/api/v1/bookings/HTL-20260401-A1B2

Authentication

All API requests use Bearer token authentication. Include your API key in the Authorization header:

curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://bookr.app/api/v1/catalog

The API key scopes requests to items assigned to your partner catalog. See the full API reference for all available endpoints.

API Reference →