List menu categories
Try itLists the menu's categories in id order.
https:/ / tablebuddy.radioworkflow.com/ api/ v1/ menu/ categoriesPaged in id order: send next_cursor back as cursor for the next page. Categories hidden from the POS are listed too (is_active false). A category synced from Toast keeps Toast's name. See Pagination.
Authentication
Authorization: Bearer <key>, or the same key in x-api-key. A key acts as the person who made it, cut down to this endpoint’s scope, and never as an owner. How keys workpos.use) or Edit the menu (menu.manage)Request headers
AuthorizationrequiredBearer <key>. x-api-key: <key> works too; Authorization wins when both are sent.Idempotency-KeyignoredQuery parameters
limitinteger1–100optionalDefault 50.
cursorstringidoptionalnext_cursor from the previous page.Any other parameter, or one sent twice, is answered 422 invalid_request naming it. A list pages by cursor: see Pagination.
Response
In id order. sort_order is the menu's own order.
Text in this answer can be typed in another system the restaurant uses (Toast) and synced in.
currencystringISO 4217minor_digitsinteger0–3dataarray of objectdata[].idstringiddata[].namestringdata[].is_activebooleandata[].sort_orderintegerhas_morebooleannext_cursorstringidnullablecursor. Null on the last page.An answer may gain fields within v1: ignore the ones you do not know. Versioning
Response headers
request-idalwaysCache-Controlalwaysno-store: an answer is never cached.RateLimit-Limit, RateLimit-Remaining, RateLimit-Resetonce the key is knownx-error-codeon an errorerror.code in the body.Retry-Afteron a 429WWW-Authenticateon a 401, and a 403 insufficient_scopeErrors
insufficient_scopeFix: Scopes are fixed when a key is made: make a new key with the scope.
issuer_access_endedFix: Make a new key from an active account.
issuer_permission_changedFix: Ask an owner to restore the permission, or make a new key from an account that holds it.
permission_requiredFix: Use a key with the named scope, from a creator who holds the named permission.
invalid_requestFix: Fix the named fields. Nothing was done, and an Idempotency-Key is not used up.
invalid_cursorFix: Start without cursor.
missing_api_keyNo Authorization: Bearer header and no x-api-key header.invalid_api_keyThe key is unknown, revoked or expired (answered alike).rate_limitedOver the key's 60 units a minute, or over 30 unknown keys a minute from one network (an address; an IPv6 caller's /64).internal_errorSomething failed on our side. Nothing kept the Idempotency-Key.curl -X GET "$TABLEBUDDY_URL/api/v1/menu/categories?limit=50" \ -H "Authorization: Bearer $TABLEBUDDY_API_KEY"
{
"currency": "USD",
"minor_digits": 2,
"data": [
{
"id": "cmg5x2b4f0001tb2jx0v5n3ps",
"name": "Entrées",
"is_active": true,
"sort_order": 2
}
],
"has_more": false,
"next_cursor": null
}