Keys and scopes

Two kinds of key

Secret keyWebsite key
Looks likerf_sk_…rf_pk_…
Use it inYour server, app backend, AI assistant settingsWeb pages (JavaScript in the browser)
CanAny scope you give itOnly public scopes (menu, availability, booking)
LimitsBranches, expiry dateBranches, expiry date, and the websites allowed to use it

Send either as Authorization: Bearer … (or X-API-Key). Keys are shown once when created; RestoFleet keeps only a SHA-256 fingerprint. Revoke a key at any time in Setup → API keys; it stops working immediately.

From a web page with a website key
fetch('https://api.restofleet.com/api/v1/open/restaurant', {
  headers: { Authorization: 'Bearer rf_pk_...' },
}).then((r) => r.json());

Scopes

ScopeAllowsWebsite keys
brand:readRestaurant & branches. Name, branches, address, phone and opening hours.Yes
menu:readMenu. Categories, dishes, prices and what is available now.Yes
availability:readTable availability. Free booking times for a date and party size.Yes
reservations:writeBook tables. Create bookings (and cancel them with a secret key).Yes
reservations:readRead bookings. Look up a booking by its id.No
guests:readGuest loyalty. Find a guest by phone: name, visits and points.No