getMenus
Retrieve a list of menu items by menu type and platform
Documentation
Request parameters:
| Name | Description | Type | Values | Default |
|---|---|---|---|---|
type | Menu type identifier | string | "main", "footer", "sidebar" | - |
platform | Platform name | string | "desktop" / "mobile" | - |
Parameters marked with must be included in the request
Call example:
getMenus({
type: 'main',
platform: 'desktop'
})Response parameters:
| Name | Description | Type | Values |
|---|---|---|---|
id | Auto-increment unique identifier of the menu item | number | - |
title | Display title of the menu item | string | - |
type | Menu item type — "group" for a collapsible parent or "link" for a navigation item | string | - |
value | URL or route value associated with the menu item | string | - |
profile_types | List of restricted profile types. Empty array means no restriction | array | - |
show_to | Visibility scope: 0 = all, 1 = authorized users only, 2 = guests only | number | - |
target | Link target attribute: "_blank", "_self", "_parent", or "_top" | string | - |
icon | Icon string value, or null if not set | string | null | - |
badge | Badge object containing "title" and "class" fields, or null if not set | object | null | - |
badge.title | Display text of the badge (e.g. "new") | string | - |
badge.class | CSS class applied to the badge (e.g. "new") | string | - |
children | Nested child menu items. Only present on items with type "group" | array | - |