Saltar para o conteúdo

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 Escopo: 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.

Parâmetros de caminho

slugstringObrigatório

Restaurant slug.

Requisição

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

Public menu

GET /public/restaurants/{slug}/menu Escopo: 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.

Parâmetros de caminho

slugstringObrigatório

Restaurant slug.

Parâmetros de consulta

fieldsstringOpcional

Comma-separated item fields to return.

categoryFieldsstringOpcional

Comma-separated category fields to return.

categorystringOpcional

Restrict to one category.

availablebooleanOpcional

Only return currently available items.

limitintegerOpcional

Page size.

offsetintegerOpcional

Offset into the result set.

langstringOpcional

Language for translated names and descriptions.

Requisição

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 Escopo: 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.

Parâmetros de caminho

slugstringObrigatório

Restaurant slug.

Parâmetros de consulta

fieldsstringOpcional

Comma-separated category fields to return.

langstringOpcional

Language for translated names.

Requisição

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

Public menu item

GET /public/restaurants/{slug}/menu/items/{itemId} Escopo: 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.

Parâmetros de caminho

slugstringObrigatório

Restaurant slug.

itemIdstringObrigatório

Menu item id.

Parâmetros de consulta

fieldsstringOpcional

Comma-separated fields to return.

langstringOpcional

Language for translated name and description.

Requisição

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

Check availability

GET /public/restaurants/{slug}/reservations/availability Escopo: 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.

Parâmetros de caminho

slugstringObrigatório

Restaurant slug.

Parâmetros de consulta

datestringObrigatório

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

partySizeintegerOpcional

Number of covers. Availability is computed against table capacity.

fromstringOpcional

Earliest time of day to consider.

tostringOpcional

Latest time of day to consider.

slotIntervalintegerOpcional

Minutes between slots.

fieldsstringOpcional

Comma-separated fields to return.

Requisição

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 Escopo: 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.

Parâmetros de caminho

slugstringObrigatório

Restaurant slug.

Requisição

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"}'