Public booking API
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
Authorizationheader and no cookies. {host}is the restaurant’s website address in lower case, withouthttps://, 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 areapplication/problem+json. - Dates are
YYYY-MM-DDand timesHH:mmon a 24-hour clock, in the restaurant’s time zone (data.restaurant.time_zone). Instants are ISO 8601 in UTC, like2026-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 path | What 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}/availability | Free days, times and tables for a party |
POST /public/sites/{host}/reservations | Books a table |
GET /public/bookings/{token} | A guest’s booking, by its manage token |
POST /public/bookings/{token}/cancel | Cancels it, within the free cancellation time |
GET /public/bookings/{token}/calendar.ics | The booking as a calendar file |
GET /public/status | Announced maintenance |
GET /health, HEAD /health | Whether 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.
GET /v1/public/sites/la-piazza-kiel.reservation.placebee.de HTTP/1.1
Host: reservationapi.placebee.de
Accept: application/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
}
}
}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.pageslists the live pages;booking_flow: truemarks a page that holds the full booking flow.data.booking.typesare the types guests can book online, in the restaurant’s order.data.booking.areasholds the rooms and tables guests may pick from,booking_pausedwhether online booking is paused.- The theme, the navigation and each page’s
documentare in the website builder’s own format, which this article doesn’t describe. Cache-Control: public, max-age=60.
A page
GET /v1/public/sites/la-piazza-kiel.reservation.placebee.de/page?path=/reservieren HTTP/1.1
Host: reservationapi.placebee.deAnswers 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. - dateRequired
YYYY-MM-DD - The day to look at.
- partyRequired
1–100 - The number of guests.
- timeOptional
HH:mm - Adds
tablesandrecommended_table_idfor this time, for a table choice.
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{
"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
}days and slots are shortened.days: today and the following days, at most 14 and never past the booking horizon, each withavailablewhen the party has a free time that day.slots: the type’s arrival times ondate, 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, inremaining) orunavailable. 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: whendatehas 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:
{
"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"
}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.
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 answerstype_id: not_bookable. - party_sizeRequired
1–100 - Within the type’s
party_minandparty_max_online, elsebelow_minorabove_max. - local_date, local_timeRequired
YYYY-MM-DD,HH:mm - One of the day’s open times from the availability,
availableorfew. - table_idOptionalUUID or
null - The guest’s table from
tables, ornullto let PlaceBee choose the best fit. - sourceRequired
widgetfor a form on another website,booking_pagefor PlaceBee’s own pages. The restaurant sees Widget (website) or Booking page as the channel.- languageRequired
- The language of your form:
de,en,frorar. PlaceBee writes to the guest in it. - contactRequired
- The person who books and gets the messages:
first_nameandlast_name(1–100characters each),phone(6–15digits, best international like+49 151 23456789),email, andsalutationms,mr,mxornull. - booked_forOptional
{ "first_name", "last_name" }when the table is for someone else, whom the restaurant greets; otherwisenull.- guest_noteOptionalUp to
300characters - 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.
{
"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.statusisconfirmed, orpendingfor a request the restaurant confirms, by its rules.tablenames the guest’s table, and staysnullwhen PlaceBee chose one.manage_tokenis the secret of the guest’s booking, sent only in this answer. The guest’s own page ishttps://{host}/r/{manage_token}, with?lang=enfor another language of the website. It works until 30 days after the visit.confirmation_sent_tois the masked email address the confirmation, or a request’s receipt, goes to;nullwhen the restaurant switched that email off.cancellation_untilis the end of the free cancellation,hold_table_minuteshow long the table is held for late guests.- A time after midnight belongs to the day it was offered on; the answer’s
local_dateis the calendar day it falls on. - PlaceBee checks in this order: the body (
422), theIdempotency-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).
{
"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" }
]
}table_unavailable looks the same when the chosen table is gone.Retries and the Idempotency-Key
- A booking needs an
Idempotency-Keythat 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: trueand a newmanage_token. The earlier token stops working. - Cancelling needs an
Idempotency-Keytoo, 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.
GET /v1/public/bookings/x7Kp2QmZ9vR4tL8nW3sY5a HTTP/1.1
Host: reservationapi.placebee.de{
"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_foundfor a token that is unknown, malformed or expired: one answer for all three.reservation.statusis the booking’s status in the restaurant, such asconfirmed,pending,cancelledorcompleted.cancellation.allowedsays whether the guest may cancel online now.blockedsays why not:deadline_passed,startedorclosed(no longer pending or confirmed).reservation.tableshows only a table the guest chose.Cache-Control: private, no-store.
Cancel
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" }reasonisdate,sick,otherornone. 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;phoneis 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/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:VCALENDARSTATUS 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
GET /v1/public/status HTTP/1.1
Host: reservationapi.placebee.de{
"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_bookingispausedoropen: what PlaceBee announces for online booking during the window.Cache-Control: public, max-age=300.GET /healthanswers{"status":"ok"},HEAD /healththe 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.
{
"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 } }]
}
}| Code | Status | When |
|---|---|---|
validation_failed | 422 | A query or body field is missing or wrong: see errors |
idempotency_key_missing | 400 | A booking without a UUID Idempotency-Key, a cancellation without any |
not_found | 404 | No published website at the address, no such page, a type not bookable online, an unknown or expired token |
restaurant_archived | 410 | The restaurant is archived |
online_booking_paused | 423 | Online booking is paused |
too_many_requests | 429 | A rate limit is reached: retry_after in seconds |
slot_unavailable | 409 | The time is no longer free: alternatives |
table_unavailable | 409 | The chosen table is no longer free: alternatives |
cancellation_deadline_passed | 422 | Too late to cancel online: phone |
transition_not_allowed | 409 | The booking can’t be cancelled any more: current_status |
bad_request, payload_too_large | 400, 413 | Malformed 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:
| Field | Codes |
|---|---|
type_id | not_bookable: not a type guests book online |
party_size | below_min, above_max, with params.min or params.max |
local_time | nonexistent_local_time: a time skipped when the clocks change |
contact.phone | invalid_format: not 6 to 15 digits |
contact.email | invalid_format: not like name@example.com |
privacy_accepted | required: anything but true |
Rate limits
| Routes | Limit | Counted per |
|---|---|---|
GET …/availability | 120 requests a minute | Internet address |
POST …/reservations | 10 bookings an hour | Internet address, and separately per phone number |
GET /public/bookings/{token}, …/cancel, …/calendar.ics | 60 requests a minute, together | Internet address |
GET /public/sites/{host}, …/page | No 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/carriesAccess-Control-Allow-Origin: *, without credentials. - Preflights allow
GET,HEADandPOSTwithContent-Type,Accept-Language,Idempotency-KeyandX-Request-Id, and may be cached for 10 minutes. - Your script can read
Retry-After,X-Request-IdandIdempotent-Replayed.
Caching
| Route | Cache-Control |
|---|---|
| The website and its pages | public, max-age=60 |
| Status | public, max-age=300 |
| Availability, booking | None: don’t cache |
| The guest’s booking, cancel, calendar file | private, 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.