Quickstart
Book a real table from your own code in three calls.
1. Create a key
- In RestoFleet open Setup → API keys and choose New key.
- Pick Secret for a server, mobile-app backend or AI assistant. Keep the default scopes (restaurant, menu, availability, bookings).
- Copy the key. RestoFleet shows it only once and stores just a fingerprint.
Keep secret keys secret
Never put a
rf_sk_ key in a web page or app bundle. For browsers use a website key (rf_pk_), which only works from your listed websites.2. Try it
Terminal
export RESTOFLEET_API_KEY=rf_sk_...
curl -H "Authorization: Bearer $RESTOFLEET_API_KEY" https://api.restofleet.com/api/v1/open/restaurant3. Find a time and book
const API = 'https://api.restofleet.com/api/v1';
const headers = { Authorization: `Bearer ${process.env.RESTOFLEET_API_KEY}` };
// 1. Your restaurant and its branches
const { data: restaurant } = await fetch(`${API}/open/restaurant`, { headers }).then((r) => r.json());
const branch = restaurant.branches[0];
// 2. Free times for 4 guests on a date
const { data: free } = await fetch(
`${API}/open/branches/${branch.id}/availability?date=2026-12-20&partySize=4`,
{ headers },
).then((r) => r.json());
const slot = free.slots.find((s) => s.available);
// 3. Book it
const res = await fetch(`${API}/open/branches/${branch.id}/reservations`, {
method: 'POST',
headers: { ...headers, 'Content-Type': 'application/json' },
body: JSON.stringify({ name: 'Asha Rao', phone: '9845012345', partySize: 4, startsAt: slot.startsAt }),
});
console.log(res.status, await res.json());The booking appears on the restaurant's floor plan straight away, marked as booked online, and the guest gets a confirmation by SMS, WhatsApp or e-mail if the restaurant has those connected. Times are in UTC (ISO 8601); availability uses the branch's local date.
Next
- API reference: every endpoint with examples.
- Errors and limits: what to do when a time was just taken.