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.

Request
curl "https://api.restofleet.com/api/v1/open/restaurant" \
  -H "Authorization: Bearer $RESTOFLEET_API_KEY"
Response 200
{
  "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.

ParameterInDescription
branchIdrequiredpathFrom GET /restaurant.
Request
curl "https://api.restofleet.com/api/v1/open/branches/{branchId}/menu" \
  -H "Authorization: Bearer $RESTOFLEET_API_KEY"
Response 200
{
  "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.

ParameterInDescription
branchIdrequiredpathFrom GET /restaurant.
daterequiredqueryLocal date at the branch, YYYY-MM-DD.
partySizerequiredqueryNumber of guests.
Request
curl "https://api.restofleet.com/api/v1/open/branches/{branchId}/availability?date=2026-12-20&partySize=4" \
  -H "Authorization: Bearer $RESTOFLEET_API_KEY"
Response 200
{
  "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.

ParameterInDescription
branchIdrequiredpathFrom GET /restaurant.

Request body

FieldTypeDescription
namerequiredstring, up to 120 charsGuest's name.
phonerequiredstring, up to 20 charsMobile number; Indian numbers may omit +91.
emailstring (email), up to 254 chars or nullFor the confirmation e-mail.
partySizerequiredinteger 1–50
startsAtrequiredstring (date-time)One of the startsAt values from availability.
notesstring, up to 300 chars or nullAllergies, occasion, seating wishes.
source"online" | "app" | "ai"Where the booking came from, for reports.
Request
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"
  }'
Response 201
{
  "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.

ParameterInDescription
reservationIdrequiredpath
Request
curl "https://api.restofleet.com/api/v1/open/reservations/{reservationId}" \
  -H "Authorization: Bearer $RESTOFLEET_API_KEY"
Response 200
{
  "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.

ParameterInDescription
reservationIdrequiredpath
Request
curl -X POST "https://api.restofleet.com/api/v1/open/reservations/{reservationId}/cancel" \
  -H "Authorization: Bearer $RESTOFLEET_API_KEY"
Response 201
{
  "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.

ParameterInDescription
phonerequiredquery
Request
curl "https://api.restofleet.com/api/v1/open/guests?phone=+919845012345" \
  -H "Authorization: Bearer $RESTOFLEET_API_KEY"
Response 200
{
  "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