Skip to content

Navigations

This resource is used to create menus and in-store navigation.

GET: /headless_api/navigation_tree

{
    "data": [
        {
            "type": "main",
            "name": "Main menu",
            "navigation_tree": [
                {
                    "id": 1,
                    "type": "page",
                    "name": {
                        "en": "News"
                    },
                    "slug": "news",
                    "children": []
                },
                {
                    "id": 2,
                    "type": "category",
                    "name": {
                        "en": "Clothes"
                    },
                    "slug": "clothes",
                    "children": []
                }
            ]
        }
    ]
}

INFO

From each item slug will be used to load page or category data. On your end you will need to know if the navigation item is a page or category in order to load the correct url.