API reference
Let your website, app or AI assistant show your menu, check free tables and book them. Create keys in RestoFleet under Setup → API keys. Prices are in paise (₹1 = 100).
Base URL https://api.restofleet.com/api/v1. Send your key as Authorization: Bearer …. Responses are JSON with the result under data; errors look like { "error": { "code", "message" } }. The OpenAPI description works with Postman and code generators.
Restaurant
Branches, hours and menu.
GET/open/restaurant
Restaurant and branches
Scope brand:read. Branches the key may use, with hours and whether they take online bookings.
curl "https://api.restofleet.com/api/v1/open/restaurant" \
-H "Authorization: Bearer $RESTOFLEET_API_KEY"{
"data": {
"name": "Asha Rao",
"branches": [
{
"id": "8f14e45f-ceea-467a-9575-6c4c2f1a3b21",
"name": "Asha Rao",
"address": "string",
"phone": "+919845012345",
"timezone": "Asia/Kolkata",
"opensAt": "11:00",
"closesAt": "23:00",
"onlineBooking": true,
"maxPartySize": 4
}
]
}
}Responses: 200 OK · 400 Invalid input · 401 Missing or invalid API key (`API_KEY_INVALID`) · 403 Scope missing, wrong key type or website, or branch not allowed · 429 Too many requests
GET/open/branches/{branchId}/menu
Menu of a branch
Scope menu:read. Branch prices (paise), stock-outs (available), sizes and choices.
| Parameter | In | Description |
|---|---|---|
branchIdrequired | path | From GET /restaurant. |
curl "https://api.restofleet.com/api/v1/open/branches/{branchId}/menu" \
-H "Authorization: Bearer $RESTOFLEET_API_KEY"{
"data": {
"categories": [
{}
]
}
}Responses: 200 OK · 400 Invalid input · 401 Missing or invalid API key (`API_KEY_INVALID`) · 403 Scope missing, wrong key type or website, or branch not allowed · 429 Too many requests
Bookings
Free times and table reservations.
GET/open/branches/{branchId}/availability
Free booking times
Scope availability:read. Every 30 minutes within opening hours, whether a table for the party is free for 90 minutes.
| Parameter | In | Description |
|---|---|---|
branchIdrequired | path | From GET /restaurant. |
daterequired | query | Local date at the branch, YYYY-MM-DD. |
partySizerequired | query | Number of guests. |
curl "https://api.restofleet.com/api/v1/open/branches/{branchId}/availability?date=2026-12-20&partySize=4" \
-H "Authorization: Bearer $RESTOFLEET_API_KEY"{
"data": {
"date": "string",
"partySize": 4,
"durationMinutes": 1,
"slots": [
{
"time": "7:30 pm",
"startsAt": "2026-12-20T19:30:00.000Z",
"available": true
}
]
}
}Responses: 200 OK · 400 Invalid input · 401 Missing or invalid API key (`API_KEY_INVALID`) · 403 Scope missing, wrong key type or website, or branch not allowed · 429 Too many requests
POST/open/branches/{branchId}/reservations
Book a table
Scope reservations:write. Picks the best free table. Fails with SLOT_FULL (409) if the time was just taken, PARTY_TOO_LARGE or ONLINE_BOOKING_OFF. The guest gets a confirmation through the brand’s connected SMS/WhatsApp/e-mail.
| Parameter | In | Description |
|---|---|---|
branchIdrequired | path | From GET /restaurant. |
Request body
| Field | Type | Description |
|---|---|---|
namerequired | string, up to 120 chars | Guest's name. |
phonerequired | string, up to 20 chars | Mobile number; Indian numbers may omit +91. |
email | string (email), up to 254 chars or null | For the confirmation e-mail. |
partySizerequired | integer 1–50 | |
startsAtrequired | string (date-time) | One of the startsAt values from availability. |
notes | string, up to 300 chars or null | Allergies, occasion, seating wishes. |
source | "online" | "app" | "ai" | Where the booking came from, for reports. |
curl -X POST "https://api.restofleet.com/api/v1/open/branches/{branchId}/reservations" \
-H "Authorization: Bearer $RESTOFLEET_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Asha Rao",
"phone": "+919845012345",
"email": "[email protected]",
"partySize": 4,
"startsAt": "2026-12-20T19:30:00.000Z",
"notes": "string",
"source": "online"
}'{
"data": {
"id": "8f14e45f-ceea-467a-9575-6c4c2f1a3b21",
"status": "booked",
"branch": {
"id": "string",
"name": "Asha Rao",
"phone": "+919845012345",
"address": "string"
},
"name": "Asha Rao",
"partySize": 4,
"startsAt": "2026-12-20T19:30:00.000Z",
"endsAt": "2026-12-20T19:30:00.000Z",
"source": "string"
}
}Responses: 201 Booked · 400 Invalid input · 401 Missing or invalid API key (`API_KEY_INVALID`) · 403 Scope missing, wrong key type or website, or branch not allowed · 409 Time no longer free (`SLOT_FULL`) · 429 Too many requests
GET/open/reservations/{reservationId}
Look up a booking
Scope reservations:read, secret keys only.
| Parameter | In | Description |
|---|---|---|
reservationIdrequired | path |
curl "https://api.restofleet.com/api/v1/open/reservations/{reservationId}" \
-H "Authorization: Bearer $RESTOFLEET_API_KEY"{
"data": {
"id": "8f14e45f-ceea-467a-9575-6c4c2f1a3b21",
"status": "booked",
"branch": {
"id": "string",
"name": "Asha Rao",
"phone": "+919845012345",
"address": "string"
},
"name": "Asha Rao",
"partySize": 4,
"startsAt": "2026-12-20T19:30:00.000Z",
"endsAt": "2026-12-20T19:30:00.000Z",
"source": "string"
}
}Responses: 200 OK · 400 Invalid input · 401 Missing or invalid API key (`API_KEY_INVALID`) · 403 Scope missing, wrong key type or website, or branch not allowed · 429 Too many requests
POST/open/reservations/{reservationId}/cancel
Cancel a booking
Scope reservations:write, secret keys only. Only upcoming bookings can be cancelled.
| Parameter | In | Description |
|---|---|---|
reservationIdrequired | path |
curl -X POST "https://api.restofleet.com/api/v1/open/reservations/{reservationId}/cancel" \
-H "Authorization: Bearer $RESTOFLEET_API_KEY"{
"data": {
"id": "8f14e45f-ceea-467a-9575-6c4c2f1a3b21",
"status": "booked",
"branch": {
"id": "string",
"name": "Asha Rao",
"phone": "+919845012345",
"address": "string"
},
"name": "Asha Rao",
"partySize": 4,
"startsAt": "2026-12-20T19:30:00.000Z",
"endsAt": "2026-12-20T19:30:00.000Z",
"source": "string"
}
}Responses: 201 Cancelled · 400 Invalid input · 401 Missing or invalid API key (`API_KEY_INVALID`) · 403 Scope missing, wrong key type or website, or branch not allowed · 429 Too many requests
Guests
Loyalty look-up (secret keys only).
GET/open/guests
Guest loyalty by phone
Scope guests:read, secret keys only.
| Parameter | In | Description |
|---|---|---|
phonerequired | query |
curl "https://api.restofleet.com/api/v1/open/guests?phone=+919845012345" \
-H "Authorization: Bearer $RESTOFLEET_API_KEY"{
"data": {
"phone": "+919845012345",
"name": "Asha Rao",
"points": 24900,
"visits": 1,
"lastVisitAt": "19:30"
}
}Responses: 200 OK · 400 Invalid input · 401 Missing or invalid API key (`API_KEY_INVALID`) · 403 Scope missing, wrong key type or website, or branch not allowed · 404 No guest with that number (`GUEST_NOT_FOUND`) · 429 Too many requests