Zum Inhalt springen

Reservation widget

Widget config, menu and booking

What an embeddable widget on your own site calls. Every route takes a `fields` parameter because the widget runs on a guest’s connection: it asks for the columns it renders instead of downloading the whole record.

Widget configuration

GET /public/restaurants/{slug}/widget-config Berechtigung: public (no key)

Returns what the widget needs to render itself for this restaurant before the guest interacts with it. Fetch it once on load rather than hard-coding the values into your page, so a change made in Tablezio reaches the widget without a redeploy.

Pfadparameter

slugstringErforderlich

Restaurant slug.

Anfrage

curl 'https://api.tablezio.com/public/restaurants/casa-pepe/widget-config'

Public menu

GET /public/restaurants/{slug}/menu Berechtigung: public (no key)

The menu for an embedded surface, with field selection, category filtering, availability filtering, paging and language. `lang` picks the translated names and descriptions stored on the item, so a multilingual menu is one request with a different parameter, not a second menu.

Pfadparameter

slugstringErforderlich

Restaurant slug.

Abfrageparameter

fieldsstringOptional

Comma-separated item fields to return.

categoryFieldsstringOptional

Comma-separated category fields to return.

categorystringOptional

Restrict to one category.

availablebooleanOptional

Only return currently available items.

limitintegerOptional

Page size.

offsetintegerOptional

Offset into the result set.

langstringOptional

Language for translated names and descriptions.

Anfrage

curl 'https://api.tablezio.com/public/restaurants/casa-pepe/menu?available=true&lang=es&limit=50'

Public menu categories

GET /public/restaurants/{slug}/menu/categories Berechtigung: public (no key)

Just the categories, with field selection and language. Use it to render the menu navigation before pulling the items for the category the guest opens.

Pfadparameter

slugstringErforderlich

Restaurant slug.

Abfrageparameter

fieldsstringOptional

Comma-separated category fields to return.

langstringOptional

Language for translated names.

Anfrage

curl 'https://api.tablezio.com/public/restaurants/casa-pepe/menu/categories?lang=fr'

Public menu item

GET /public/restaurants/{slug}/menu/items/{itemId} Berechtigung: public (no key)

One menu item, for the detail view a guest opens from the list. Field selection applies here too, so the detail request can ask for the fields the list omitted rather than refetching everything.

Pfadparameter

slugstringErforderlich

Restaurant slug.

itemIdstringErforderlich

Menu item id.

Abfrageparameter

fieldsstringOptional

Comma-separated fields to return.

langstringOptional

Language for translated name and description.

Anfrage

curl 'https://api.tablezio.com/public/restaurants/casa-pepe/menu/items/5a1b2c3d4e5f6a7b8c9d0e1f'

Check availability

GET /public/restaurants/{slug}/reservations/availability Berechtigung: public (no key)

Returns bookable slots for a date. `partySize` matters because availability is computed against real tables and their capacities, not against a flat cover count; `from`, `to` and `slotInterval` shape the grid the widget renders.

Pfadparameter

slugstringErforderlich

Restaurant slug.

Abfrageparameter

datestringErforderlich

Date to check, ISO `YYYY-MM-DD`.

partySizeintegerOptional

Number of covers. Availability is computed against table capacity.

fromstringOptional

Earliest time of day to consider.

tostringOptional

Latest time of day to consider.

slotIntervalintegerOptional

Minutes between slots.

fieldsstringOptional

Comma-separated fields to return.

Anfrage

curl 'https://api.tablezio.com/public/restaurants/casa-pepe/reservations/availability?date=2026-10-04&partySize=4'

Create a reservation

POST /public/restaurants/{slug}/reservations Berechtigung: public (no key)

Books one of the slots returned by the availability endpoint. The booking is written straight into the restaurant’s reservation records, which is the difference between an embedded widget and a third-party booking channel: there is nothing to reconcile afterwards, and no per-cover fee in between.

Pfadparameter

slugstringErforderlich

Restaurant slug.

Anfrage

curl -X POST 'https://api.tablezio.com/public/restaurants/casa-pepe/reservations' \
  -H 'Content-Type: application/json' \
  -d '{"name":"Ana","email":"[email protected]","partySize":4,"date":"2026-10-04","time":"21:00"}'