# Menu King API Base URL: https://www.menuking.co/v1 Read and change a restaurant's menu from your own software, or read a published menu from a web page with no key at all. **Base URL.** Every path starts with `/v1`. Breaking changes ship under a new prefix, never inside `/v1`. **Keys.** Create a key in Settings, on the Pro or Group plan. The secret starts with `mk_live_` and is shown once. Send it as `Authorization: Bearer mk_live_…`. Keep it on a server. Never put it in a web page or an app. **Scopes.** `menu:read` reads. `menu:write` also changes the draft. `menu:publish` also publishes. A key can be tied to one venue, and every other venue then answers 404. **Draft and published.** Writes change the draft. Guests see changes only after `publish`. The one exception is availability: an 86 shows on a published menu within seconds. **Prices.** Plain decimal numbers in the venue currency, for example `12.5`. Read `currency` on the venue. Stored values are not converted when the currency changes. **Errors.** Every failure is `{ "error": "a sentence", "code": "machine_code" }`. Codes: `invalid_request` (400), `unauthorized` (401), `plan_required` (402), `forbidden` (403), `not_found` (404), `rate_limited` (429). **Rate limit.** About 120 requests per minute per key, counted per server instance. A 429 carries `Retry-After`. Every keyed response carries `X-RateLimit-Limit` and `X-RateLimit-Remaining`. **Dates.** ISO 8601, in UTC. ## GET /v1/venues List venues The venues this key can see. A key tied to one venue sees only that one. Auth: Bearer key with menu:read. ## GET /v1/venues/{venueId} Get a venue Language, theme and currency for one venue. Auth: Bearer key with menu:read. ## PATCH /v1/venues/{venueId} Change theme, currency or languages Changes apply to the draft. Guests see them after the next publish. Adding a language past your plan's limit returns 402. Auth: Bearer key with menu:write. Body (JSON): - theme (bistro | modern | lounge | street | classic | warm | slate | ivory): Choosing a different preset starts over from its colours, font and layout. - design (value): Overrides on top of the preset. null clears them all. - guestInfo (value): Wi-Fi, Instagram, review link and service note. null or an empty string clears a field. - currency (USD | EUR | GBP | CAD | AUD | NZD | CHF | SEK | NOK | DKK | ISK | PLN | CZK | HUF | RON | BGN | TRY | UAH | JPY | KRW | CNY | HKD | SGD | INR | THB | MYR | IDR | PHP | VND | AED | SAR | ILS | EGP | MAD | ZAR | MXN | BRL | ARS | CLP | COP | PEN): Stored prices are not converted. - defaultLocale (string): Language code such as en, th or pt-br. - locales (string[]): Ordered list, default language included. Removing one deletes its translations. ## GET /v1/venues/{venueId}/sections List menus and categories Every section of the venue in one flat list. type is menu, category or subcategory, and parentId builds the tree. guestUrl is set only for a published menu. Auth: Bearer key with menu:read. ## POST /v1/venues/{venueId}/sections Create a menu or category Draft only. Nothing is visible to guests until the menu is published. Auth: Bearer key with menu:write. Body (JSON): - name (string, required) - type (menu | category | subcategory): A menu has no parent. Categories sit under a menu or a category. - parentId (string,null) ## PATCH /v1/venues/{venueId}/sections/{sectionId} Rename a section Renames the section in the default language. Use the translations call for other languages. Auth: Bearer key with menu:write. Body (JSON): - name (string, required): Default-language name. ## POST /v1/venues/{venueId}/sections/{sectionId}/publish Publish a menu The only call that changes what guests see: prices, 86s, theme, languages and modifiers all go live together. The section must be a menu, not a category. The first publish creates the guest URL. Auth: Bearer key with menu:publish. ## GET /v1/venues/{venueId}/items List dishes Dishes sorted by name, 50 per page by default. Pass nextCursor back as cursor for the next page. Auth: Bearer key with menu:read. Query: - query (string): Matches part of the dish name. - status (online | offline) - sectionId (string): Only dishes in this section, or in a section directly under it. - limit (integer) - cursor (string): The nextCursor from the previous page. ## POST /v1/venues/{venueId}/items Create a dish Draft only. Send sectionId to place the dish in a section. The Free plan stops at its dish limit with a 402. Photos are uploaded in the dashboard. Auth: Bearer key with menu:write. Body (JSON): - name (string, required) - price (number, required): Plain decimal in the venue currency, for example 12.5. Stored to the cent. - description (string, required) - status (online | offline, required): online shows the dish to guests. offline is 86'd. - sectionId (string): Place the dish in this section as part of the create. - ingredients (string[]) - allergens (string[]) - diets (string[]) - nutrition (object): Whole numbers from 0 to 20000 per serving. ## GET /v1/venues/{venueId}/items/{itemId} Get a dish One dish with its sections, allergens and modifier groups. Auth: Bearer key with menu:read. ## PATCH /v1/venues/{venueId}/items/{itemId} Change a dish Send only the fields that change. Name and description are the default language. A dish shared from another venue accepts only price and status here. Auth: Bearer key with menu:write. Body (JSON): - name (string) - price (number): Plain decimal in the venue currency, for example 12.5. Stored to the cent. - description (string) - status (online | offline): online shows the dish to guests. offline is 86'd. - ingredients (string[]) - allergens (string[]) - diets (string[]) - nutrition (value) ## POST /v1/venues/{venueId}/items/availability Put dishes online or offline Offline is the 86 button. It moves one or many dishes at once and applies to the draft. Publish to show it to guests, or rely on the live status flag when the menu is already published. Auth: Bearer key with menu:write. Body (JSON): - itemIds (string[], required) - status (online | offline, required): online shows the dish to guests. offline is 86'd. ## PUT /v1/venues/{venueId}/items/{itemId}/sections/{sectionId} Place a dish in a section Idempotent. Placing a dish that is already there changes nothing. Auth: Bearer key with menu:write. ## DELETE /v1/venues/{venueId}/items/{itemId}/sections/{sectionId} Take a dish out of a section The dish itself stays. Use availability to take it off the menu. Auth: Bearer key with menu:write. ## PUT /v1/venues/{venueId}/items/{itemId}/modifier-groups Set a dish's modifier groups Replaces what is attached, in the order sent. Auth: Bearer key with menu:write. Body (JSON): - groupIds (string[], required): Modifier group ids in display order. Replaces what is attached. ## GET /v1/venues/{venueId}/modifier-groups List modifier groups Groups with their options, prices and selection bounds. Auth: Bearer key with menu:read. ## POST /v1/venues/{venueId}/modifier-groups Create a modifier group Use a preset or explicit bounds. Draft only. Auth: Bearer key with menu:write. Body (JSON): - name (string, required) - preset (extras | chooseOne | includedThenExtra): A preset sets the bounds. Leave the bounds out when you use one. - minSelect (integer) - maxSelect (value) - includedCount (integer) - options (object[]): Replaces the group's options when sent. ## PUT /v1/venues/{venueId}/modifier-groups/{groupId} Replace a modifier group Send the whole group. When options are sent they replace the existing ones. Auth: Bearer key with menu:write. Body (JSON): - name (string, required) - preset (extras | chooseOne | includedThenExtra): A preset sets the bounds. Leave the bounds out when you use one. - minSelect (integer) - maxSelect (value) - includedCount (integer) - options (object[]): Replaces the group's options when sent. ## GET /v1/venues/{venueId}/translations Read translations for a record Translated names and descriptions for one dish, section, modifier group or option. Auth: Bearer key with menu:read. Query: - entityType (item | node | modifier_group | modifier_option, required) - entityId (string, required) ## PUT /v1/venues/{venueId}/translations Set one translation Sets one field in one added language. The default language is not a translation. Add the language to the venue first. Descriptions exist only on dishes. Auth: Bearer key with menu:write. Body (JSON): - entityType (item | node | modifier_group | modifier_option, required) - entityId (string, required) - locale (string, required): An added language. The default language is edited on the record itself. - field (name | description, required) - value (string, required): An empty string removes the translation. ## GET /v1/public/menus/{venue}/{menu} Read a published menu No key needed, and CORS is open, so a website can call it from the browser. This is the same document that renders the guest page. It changes only when the menu is published, and a publish shows up here within about a minute. The response carries an ETag, so send If-None-Match to get a 304. Auth: none.