Skip to content

Public booking API

10 min read

The public API is the one PlaceBee’s own websites book with. It needs no key and no account: it finds a restaurant by its website address, and a booking by its manage token. Use it to show free times in your own design or to take bookings in your own form.

Basics

  • Base URL: https://reservationapi.placebee.de/v1.
  • No authentication: send no Authorization header and no cookies.
  • {host} is the restaurant’s website address in lower case, without https://, path or port: la-piazza-kiel.reservation.placebee.de.
  • JSON in and out, in UTF-8. Requests with a body need Content-Type: application/json. Errors are application/problem+json.
  • Dates are YYYY-MM-DD and times HH:mm on a 24-hour clock, in the restaurant’s time zone (data.restaurant.time_zone). Instants are ISO 8601 in UTC, like 2026-11-19T01:00:00Z. Ids are UUIDs.
  • Every answer carries X-Request-Id. Send your own UUID in it to follow a request; otherwise PlaceBee makes one.
  • Answers can gain new fields: ignore the ones you don’t know.
Method and pathWhat it does
GET /public/sites/{host}The live website: languages, pages and the restaurant’s data, its reservation types included
GET /public/sites/{host}/page?path=One live page as published
GET /public/sites/{host}/availabilityFree days, times and tables for a party
POST /public/sites/{host}/reservationsBooks a table
GET /public/bookings/{token}A guest’s booking, by its manage token
POST /public/bookings/{token}/cancelCancels it, within the free cancellation time
GET /public/bookings/{token}/calendar.icsThe booking as a calendar file
GET /public/statusAnnounced maintenance
GET /health, HEAD /healthWhether the API answers

The website and its pages

Start here: the website gives you the reservation types to book and everything the booking flow shows around them.

http
GET /v1/public/sites/la-piazza-kiel.reservation.placebee.de HTTP/1.1
Host: reservationapi.placebee.de
Accept: application/json
json
{
  "id": "0193a5e1-4c2b-7d10-8e5f-6a7b8c9d0e1f",
  "restaurant_id": "0193a5e1-2f80-7a44-b1c2-3d4e5f6a7b8c",
  "name": "La Piazza",
  "primary_host": "la-piazza-kiel.reservation.placebee.de",
  "locales": { "source": "de", "enabled": ["de", "en"] },
  "pages": [
    {
      "id": "0193a5e1-6d1e-7f02-9a3b-4c5d6e7f8091",
      "kind": "page",
      "name": { "de": "Reservieren", "en": "Reserve" },
      "path": "/reservieren",
      "parent_id": null,
      "redirect_to": null,
      "url": null,
      "booking_flow": true
    }
  ],
  "data": {
    "restaurant": {
      "name": "La Piazza",
      "city": "Kiel",
      "address": {
        "street": "Holstenstraße",
        "number": "12",
        "postal_code": "24103",
        "city": "Kiel",
        "country": "DE"
      },
      "phone": "+49 431 123456",
      "email": "info@lapiazza-kiel.de",
      "time_zone": "Europe/Berlin"
    },
    "today": "2026-11-12",
    "booking_paused": false,
    "booking": {
      "types": [
        {
          "id": "0193a5e1-8b21-7d02-a3c4-1e2f3a4b5c6d",
          "name": "Abendessen",
          "description": "Di.–So. ab 17:30 · etwa 2 Stunden",
          "icon": "utensils",
          "color": "red",
          "duration_minutes": 120,
          "party_min": 1,
          "party_max_online": 8,
          "guest_table_choice": true
        }
      ],
      "slot_interval_minutes": 15,
      "horizon_days": 60,
      "free_cancellation_hours": 24,
      "hold_table_minutes": 15,
      "pause_message": null
    }
  }
}
Shortened: theme, navigation, page_order, redirects and assets, and in data the opening hours, menu, events, company details and booking.areas are left out.
  • 404 not_found: no published website has this address. 410 restaurant_archived: the restaurant is archived.
  • pages lists the live pages; booking_flow: true marks a page that holds the full booking flow.
  • data.booking.types are the types guests can book online, in the restaurant’s order. data.booking.areas holds the rooms and tables guests may pick from, booking_paused whether online booking is paused.
  • The theme, the navigation and each page’s document are in the website builder’s own format, which this article doesn’t describe.
  • Cache-Control: public, max-age=60.

A page

http
GET /v1/public/sites/la-piazza-kiel.reservation.placebee.de/page?path=/reservieren HTTP/1.1
Host: reservationapi.placebee.de

Answers id, kind, path, version, published_at and the page’s document as published. path is required, up to 160 characters; a missing leading slash is added and a trailing one dropped. Redirects and links to other websites answer 404: follow redirects and url from the website instead.

Free times

What the booking flow offers one party for one reservation type on one day.

type_idRequiredUUID
A type from data.booking.types.
dateRequiredYYYY-MM-DD
The day to look at.
partyRequired1–100
The number of guests.
timeOptionalHH:mm
Adds tables and recommended_table_id for this time, for a table choice.
http
GET /v1/public/sites/la-piazza-kiel.reservation.placebee.de/availability?type_id=0193a5e1-8b21-7d02-a3c4-1e2f3a4b5c6d&date=2026-11-14&party=4 HTTP/1.1
Host: reservationapi.placebee.de
json
{
  "type_id": "0193a5e1-8b21-7d02-a3c4-1e2f3a4b5c6d",
  "date": "2026-11-14",
  "party": 4,
  "days": [
    { "date": "2026-11-12", "available": true },
    { "date": "2026-11-13", "available": false },
    { "date": "2026-11-14", "available": true }
  ],
  "slots": [
    { "time": "19:00", "state": "available", "remaining": null },
    { "time": "19:15", "state": "few", "remaining": 2 },
    { "time": "19:30", "state": "few", "remaining": 1 },
    { "time": "19:45", "state": "unavailable", "remaining": null }
  ],
  "alternatives": [],
  "tables": [],
  "recommended_table_id": null
}
Asked on 12 Nov 2026. days and slots are shortened.
  • days: today and the following days, at most 14 and never past the booking horizon, each with available when the party has a free time that day.
  • slots: the type’s arrival times on date, on the restaurant’s time grid: available, few (one or two tables left, or room for only one or two such parties in the seats the restaurant offers online, in remaining) or unavailable. Empty on a closed day, when the party doesn’t fit the type, or when it’s larger than the seats the restaurant offers online.
  • alternatives: when date has no free time, up to three next days with one, each with a time near the middle of that day.
  • 404: the type isn’t bookable online. 423 online_booking_paused: the restaurant paused online booking.
  • The answer has no caching header: ask again when the guest changes the day or the party.

With time, every table guests may pick gets a state, free, reserved, blocked, too_small or too_large, and the best free one is recommended:

json
{
  "tables": [
    { "id": "0193a5e1-9c40-7e11-8f22-0a1b2c3d4e01", "state": "free" },
    { "id": "0193a5e1-9c40-7e11-8f22-0a1b2c3d4e02", "state": "reserved" },
    { "id": "0193a5e1-9c40-7e11-8f22-0a1b2c3d4e03", "state": "too_small" }
  ],
  "recommended_table_id": "0193a5e1-9c40-7e11-8f22-0a1b2c3d4e01"
}
The same answer with time=19:30, shortened to the tables.

Create a booking

Send what the guest chose and entered. PlaceBee checks the time and the table again at that moment and books, or says what to offer instead.

http
POST /v1/public/sites/la-piazza-kiel.reservation.placebee.de/reservations HTTP/1.1
Host: reservationapi.placebee.de
Content-Type: application/json
Idempotency-Key: 5b0c2f6e-3d1a-4e8b-9c7f-2a6d4e1b8f30

{
  "type_id": "0193a5e1-8b21-7d02-a3c4-1e2f3a4b5c6d",
  "party_size": 4,
  "local_date": "2026-11-14",
  "local_time": "19:30",
  "table_id": null,
  "source": "widget",
  "language": "de",
  "contact": {
    "salutation": "mr",
    "first_name": "Martin",
    "last_name": "Müller",
    "phone": "+49 151 23456789",
    "email": "martin.mueller@example.com"
  },
  "booked_for": null,
  "guest_note": "Ein Kinderstuhl, bitte.",
  "privacy_accepted": true
}
type_idRequiredUUID
A type from data.booking.types. Any other answers type_id: not_bookable.
party_sizeRequired1–100
Within the type’s party_min and party_max_online, else below_min or above_max.
local_date, local_timeRequiredYYYY-MM-DD, HH:mm
One of the day’s open times from the availability, available or few.
table_idOptionalUUID or null
The guest’s table from tables, or null to let PlaceBee choose the best fit.
sourceRequired
widget for a form on another website, booking_page for PlaceBee’s own pages. The restaurant sees Widget (website) or Booking page as the channel.
languageRequired
The language of your form: de, en, fr or ar. PlaceBee writes to the guest in it.
contactRequired
The person who books and gets the messages: first_name and last_name (1–100 characters each), phone (6–15 digits, best international like +49 151 23456789), email, and salutation ms, mr, mx or null.
booked_forOptional
{ "first_name", "last_name" } when the table is for someone else, whom the restaurant greets; otherwise null.
guest_noteOptionalUp to 300 characters
A note for the restaurant. Blank is stored as null.
privacy_acceptedRequired
Must be true. Show the restaurant’s privacy policy and reservation terms, and ask for consent, before you send.
json
{
  "code": "PB-7K4Q-2M",
  "status": "confirmed",
  "local_date": "2026-11-14",
  "local_time": "19:30",
  "local_end_time": "21:30",
  "party_size": 4,
  "type": { "id": "0193a5e1-8b21-7d02-a3c4-1e2f3a4b5c6d", "name": "Abendessen" },
  "table": null,
  "manage_token": "x7Kp2QmZ9vR4tL8nW3sY5a",
  "cancellation_until": { "local_date": "2026-11-13", "local_time": "19:30" },
  "hold_table_minutes": 15,
  "confirmation_sent_to": "m•••@example.com"
}
201 Created.
  • status is confirmed, or pending for a request the restaurant confirms, by its rules.
  • table names the guest’s table, and stays null when PlaceBee chose one.
  • manage_token is the secret of the guest’s booking, sent only in this answer. The guest’s own page is https://{host}/r/{manage_token}, with ?lang=en for another language of the website. It works until 30 days after the visit.
  • confirmation_sent_to is the masked email address the confirmation, or a request’s receipt, goes to; null when the restaurant switched that email off.
  • cancellation_until is the end of the free cancellation, hold_table_minutes how long the table is held for late guests.
  • A time after midnight belongs to the day it was offered on; the answer’s local_date is the calendar day it falls on.
  • PlaceBee checks in this order: the body (422), the Idempotency-Key (400), the address (404, 410), a pause (423), the type and party size (422), the rate limits (429), then the time and the table (409).
json
{
  "type": "https://docs.placebee.de/errors/slot_unavailable",
  "title": "This time is no longer available.",
  "status": 409,
  "code": "slot_unavailable",
  "trace_id": "0193a5f2-2c4d-7e5f-9a61-7b8c9d0e1f2a",
  "alternatives": [
    { "local_date": "2026-11-14", "local_time": "19:15" },
    { "local_date": "2026-11-14", "local_time": "19:00" },
    { "local_date": "2026-11-14", "local_time": "20:00" }
  ]
}
Someone was faster. table_unavailable looks the same when the chosen table is gone.

Retries and the Idempotency-Key

  • A booking needs an Idempotency-Key that is a UUID. Send a new one for every booking a guest confirms, and the same one only to retry that booking after a timeout or a lost answer.
  • The same key again answers the booking made before, with 201, Idempotent-Replayed: true and a new manage_token. The earlier token stops working.
  • Cancelling needs an Idempotency-Key too, of any value. Cancelling a cancelled booking again answers it as it is.

The guest’s booking

With the manage token, the guest’s booking can be shown, cancelled and saved to a calendar. Tokens from the links in PlaceBee’s guest emails work the same way.

http
GET /v1/public/bookings/x7Kp2QmZ9vR4tL8nW3sY5a HTTP/1.1
Host: reservationapi.placebee.de
json
{
  "restaurant": {
    "id": "0193a5e1-2f80-7a44-b1c2-3d4e5f6a7b8c",
    "name": "La Piazza",
    "phone": "+49 431 123456",
    "time_zone": "Europe/Berlin"
  },
  "reservation": {
    "code": "PB-7K4Q-2M",
    "status": "confirmed",
    "local_date": "2026-11-14",
    "local_time": "19:30",
    "local_end_time": "21:30",
    "party_size": 4,
    "type": { "id": "0193a5e1-8b21-7d02-a3c4-1e2f3a4b5c6d", "name": "Abendessen" },
    "table": null,
    "contact": {
      "name": "Martin Müller",
      "phone": "+49 151 23456789",
      "email": "martin.mueller@example.com"
    },
    "guest_name": "Martin Müller",
    "guest_note": "Ein Kinderstuhl, bitte.",
    "language": "de",
    "cancelled_at": null,
    "version": 1
  },
  "cancellation": {
    "allowed": true,
    "until": { "local_date": "2026-11-13", "local_time": "19:30" },
    "blocked": null
  }
}
  • 404 not_found for a token that is unknown, malformed or expired: one answer for all three.
  • reservation.status is the booking’s status in the restaurant, such as confirmed, pending, cancelled or completed.
  • cancellation.allowed says whether the guest may cancel online now. blocked says why not: deadline_passed, started or closed (no longer pending or confirmed).
  • reservation.table shows only a table the guest chose.
  • Cache-Control: private, no-store.

Cancel

http
POST /v1/public/bookings/x7Kp2QmZ9vR4tL8nW3sY5a/cancel HTTP/1.1
Host: reservationapi.placebee.de
Content-Type: application/json
Idempotency-Key: 8d3e1f40-2a6b-4c7d-9e8f-1b2c3d4e5f60

{ "reason": "sick" }
  • reason is date, sick, other or none. The restaurant sees it in the booking’s history.
  • The answer is the booking as above, with status: cancelled. The guest gets the cancellation email if the restaurant has it switched on.
  • 422 cancellation_deadline_passed: the free cancellation is over or the visit has started; phone is the restaurant’s number to call instead. 409 transition_not_allowed: the booking is neither pending nor confirmed.

The calendar file

GET /public/bookings/{token}/calendar.ics returns the booking as an iCalendar event in the language it was booked in. Link to it directly; it needs nothing but the token.

http
HTTP/1.1 200 OK
Content-Type: text/calendar; charset=utf-8
Content-Disposition: attachment; filename="PB-7K4Q-2M.ics"
Cache-Control: private, no-store

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//PlaceBee//Reservations//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
BEGIN:VEVENT
UID:PB-7K4Q-2M@placebee.de
DTSTAMP:20261112T091500Z
DTSTART:20261114T183000Z
DTEND:20261114T203000Z
SUMMARY:La Piazza · 4 Personen
LOCATION:Holstenstraße 12\, 24103 Kiel
DESCRIPTION:Buchungscode: PB-7K4Q-2M
STATUS:CONFIRMED
END:VEVENT
END:VCALENDAR

STATUS is TENTATIVE for a request, CANCELLED for a cancelled or declined booking, otherwise CONFIRMED. LOCATION appears when the restaurant has an address.

Status and health

http
GET /v1/public/status HTTP/1.1
Host: reservationapi.placebee.de
json
{
  "maintenance": {
    "starts_at": "2026-11-19T01:00:00Z",
    "ends_at": "2026-11-19T03:00:00Z",
    "online_booking": "paused"
  }
}
maintenance is null when nothing is announced.
  • online_booking is paused or open: what PlaceBee announces for online booking during the window.
  • Cache-Control: public, max-age=300.
  • GET /health answers {"status":"ok"}, HEAD /health the same without a body, without touching the database. They aren’t open to browsers on other websites: call them from a server or a monitoring tool.

Errors and limits

Errors follow RFC 9457. Rely on code: title is for people and may change, and type is the code as a web address. trace_id is the request’s X-Request-Id; give it to PlaceBee support when you ask about a request.

json
{
  "type": "https://docs.placebee.de/errors/validation_failed",
  "title": "The given data was invalid.",
  "status": 422,
  "code": "validation_failed",
  "trace_id": "0193a5f2-1b3c-7d4e-8f50-6a7b8c9d0e1f",
  "errors": {
    "type_id": [{ "code": "invalid_format" }],
    "date": [{ "code": "invalid_format" }],
    "party": [{ "code": "below_min", "params": { "min": 1 } }]
  }
}
CodeStatusWhen
validation_failed422A query or body field is missing or wrong: see errors
idempotency_key_missing400A booking without a UUID Idempotency-Key, a cancellation without any
not_found404No published website at the address, no such page, a type not bookable online, an unknown or expired token
restaurant_archived410The restaurant is archived
online_booking_paused423Online booking is paused
too_many_requests429A rate limit is reached: retry_after in seconds
slot_unavailable409The time is no longer free: alternatives
table_unavailable409The chosen table is no longer free: alternatives
cancellation_deadline_passed422Too late to cancel online: phone
transition_not_allowed409The booking can’t be cancelled any more: current_status
bad_request, payload_too_large400, 413Malformed JSON, or a body over 1 MB

Field errors

errors maps each field, with dotted paths like contact.email, to its problems. A missing field is required, a value of the wrong shape invalid_format, a text too long too_long with params.max. A booking adds:

FieldCodes
type_idnot_bookable: not a type guests book online
party_sizebelow_min, above_max, with params.min or params.max
local_timenonexistent_local_time: a time skipped when the clocks change
contact.phoneinvalid_format: not 6 to 15 digits
contact.emailinvalid_format: not like name@example.com
privacy_acceptedrequired: anything but true

Rate limits

RoutesLimitCounted per
GET …/availability120 requests a minuteInternet address
POST …/reservations10 bookings an hourInternet address, and separately per phone number
GET /public/bookings/{token}, …/cancel, …/calendar.ics60 requests a minute, togetherInternet address
GET /public/sites/{host}, …/pageNo limit of their own

Over a limit, PlaceBee answers 429 too_many_requests with retry_after in seconds and the same number in Retry-After. A refused request doesn’t count. The limits count the address the request comes from, so call the API from the guest’s browser, not from one server for everyone.

CORS

  • Every answer under /v1/public/ carries Access-Control-Allow-Origin: *, without credentials.
  • Preflights allow GET, HEAD and POST with Content-Type, Accept-Language, Idempotency-Key and X-Request-Id, and may be cached for 10 minutes.
  • Your script can read Retry-After, X-Request-Id and Idempotent-Replayed.

Caching

RouteCache-Control
The website and its pagespublic, max-age=60
Statuspublic, max-age=300
Availability, bookingNone: don’t cache
The guest’s booking, cancel, calendar fileprivate, no-store

Common questions

Can I list or change a restaurant’s reservations?

No. The public API books, and shows or cancels one booking by its manage token. Everything else needs a person signed in to PlaceBee (What isn’t there yet).

Can I hold a time while the guest types?

No. Read the availability, and when booking answers 409 slot_unavailable, offer the alternatives.

Why do I get idempotency_key_missing although I send a key?

For a booking, the key must be a UUID.

Why does every field come back as required?

The body wasn’t read as JSON: send Content-Type: application/json.

Is there a test environment?

Not for integrations. Every booking is real: test with your own email address and cancel it with its manage token.

Was this page helpful?