Skip to content
Last updated

Quickstart

Make your first booking in 6 steps. This guide takes you from zero to a confirmed booking using the Bookable API.

Before you start

You'll need:

  • A client_id and client_secret — log in to the Bookable Portal to find your credentials
SandboxProduction
Base URLhttps://api-sandbox.bookabletech.comhttps://api.bookabletech.com
Auth endpointhttps://auth-sandbox.bookabletech.com/oauth/tokenhttps://auth.bookabletech.com/oauth/token

Start with sandbox credentials during development.


Step 1: Get an access token

The Bookable API uses OAuth 2.0 Client Credentials. Exchange your client_id and client_secret for a short-lived bearer token.

curl -X POST https://auth.bookabletech.com/oauth/token \
  -H "Content-Type: application/json" \
  -d '{
    "grant_type": "client_credentials",
    "client_id": "YOUR_CLIENT_ID",
    "client_secret": "YOUR_CLIENT_SECRET",
    "audience": "api.bookabletech.com"
  }'

Example response:

{
  "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
  "scope": "venue:read venue-booking:create",
  "expires_in": 3600,
  "token_type": "Bearer"
}

Tokens are valid for 1 hour. See Authentication for a full token manager with caching.


Step 2: Get connected to an operator

Venues are scoped to the operators connected to your channel. An operator is the hospitality business whose venues you want to make bookable. Bookable onboards operators and connects their TMS credentials (partners get 403 on POST /operators and on the TMS-credential operations), so ask Bookable to connect the operators you want to distribute. Once connected, their venues appear in GET /venues.

GET /operators lists the operators you're connected to. In sandbox, test venues are available from the start.


Step 3: Search for a venue

Use GET /venues to find venues. Filter by city, date, or other criteria to narrow results.

curl "https://api.bookabletech.com/venues?city=London&date=2025-08-15" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Example response (truncated):

{
  "data": [
    {
      "id": "29|X9|275cc44dd2e2496fba44857c9257443a",
      "name": "The Grand Table",
      "location": { "city": "London" },
      "products": [
        {
          "compositeId": "29|CO|275cc44dd2e2496fba44857c9257443a|d99128c546b34b619c4477b712869f2b",
          "productName": "Table Reservation"
        }
      ]
    }
  ]
}

The compositeId inside products[] is what you need for the next steps. Each product has its own compositeId.


Step 4: Check availability

Before creating a booking, verify that the venue has slots available for your desired date, time, and party size.

GET /venues/{compositeId}/availability?date=YYYY-MM-DD&startTime=HH:MM&partySize=N
COMPOSITE_ID="29|CO|275cc44dd2e2496fba44857c9257443a|d99128c546b34b619c4477b712869f2b"

curl "https://api.bookabletech.com/venues/${COMPOSITE_ID}/availability?date=2025-08-15&startTime=19:00&partySize=4" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Example response:

{
  "name": "Table Reservation",
  "times": [
    {
      "time": "19:00",
      "dateTime": "2025-08-15T19:00:00+01:00",
      "duration": 90,
      "type": "book",
      "productId": "29|CO|275cc44dd2e2496fba44857c9257443a|d99128c546b34b619c4477b712869f2b"
    },
    {
      "time": "19:30",
      "dateTime": "2025-08-15T19:30:00+01:00",
      "duration": 90,
      "type": "request",
      "productId": "29|CO|275cc44dd2e2496fba44857c9257443a|d99128c546b34b619c4477b712869f2b"
    }
  ]
}

If times is null or empty, there are no slots available — try a different date. Use the type from your chosen slot (book or request) in the next step — request is always a valid choice too, even for a book slot (see Availability Types).

date and time are on the venue's trading day: a 00:30 slot listed under Saturday's date actually starts on Sunday. times[].dateTime (RFC 3339 with the venue's UTC offset) is the real start moment — send it back unchanged in the next step.


Step 5: Create a booking

Submit the booking with the guest details and the type and dateTime from Step 4.

POST /venues/{compositeId}/booking

Send either dateTime or both date and time (use date + time if the slot's dateTime is null):

CaseResult
dateTime and date + time disagreeBOOK-N-018
Neither dateTime nor date + timeBOOK-N-019
dateTime without a UTC offsetBOOK-N-020
curl -X POST "https://api.bookabletech.com/venues/${COMPOSITE_ID}/booking" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -H "x-Partner-Reference: YOUR_INTERNAL_ORDER_ID" \
  -d '{
    "firstName": "Jane",
    "lastName": "Smith",
    "email": "jane.smith@example.com",
    "phone": "+441234567890",
    "partySize": 4,
    "dateTime": "2025-08-15T19:00:00+01:00",
    "type": "book",
    "notes": "Window table if possible"
  }'

Example response:

{
  "id": "29|CO|550e8400e29b41d4a716446655440000",
  "operatorBookingId": "BKA-7X2P",
  "status": "Confirmed",
  "firstName": "Jane",
  "lastName": "Smith",
  "partySize": 4,
  "date": "2025-08-15",
  "time": "19:00",
  "dateTime": "2025-08-15T19:00:00+01:00",
  "venueGroupName": "The Grand Table Group"
}

Step 6: Handle the response

For book type (instant confirmation)

The booking status will normally be Confirmed. If the venue's booking system is unavailable, it is Pending with syncState: pending_create instead, and a booking.updated webhook follows once it is confirmed or refused. Store the id for future retrieval or cancellation, and the operatorBookingId for guest-facing communications.

For request type (manual approval)

The booking status will be Pending. The venue operator will review and confirm or decline. Listen for status changes via webhooks — a booking.updated event fires when the operator responds.

Handling errors

HTTP StatusMeaning
400Invalid request body — check required fields
401Token expired or invalid — refresh your token
404Venue not found or compositeId incorrect; VENUE-N-009 = venue closed, remove it from sale (do not retry)
409No longer available at the requested time
422Business rule violation (e.g. party size out of range)

See the Error Catalog for the full list of error codes and resolution steps.


Next steps