Agara
Navigation

Per-root sidebar

Sidebar tree for a category root โ€” sections at the top level, items (category or sentinel) beneath, with child arrays for curated categories. When no editorial sidebar is configured, returns a minimal "All" link with fallback=true.

GET
/api/v1/nav/sidebar/{root_slug}

Path Parameters

root_slug
Required
string

Root category slug.

curl -X GET "https://app.agara.xyz/api/v1/nav/sidebar/string"

Success

{
  "context": {
    "slug": "string",
    "label": "string"
  },
  "redirect": {
    "url": "string"
  },
  "viewKey": "string",
  "fallback": true,
  "sections": [
    {
      "label": "string",
      "showLabel": true,
      "items": [
        {
          "label": "string",
          "icon": "string",
          "url": "string",
          "key": "string",
          "count": 0,
          "badge": "live",
          "children": [
            {
              "label": "string",
              "icon": "string",
              "url": "string",
              "key": "string",
              "count": 0,
              "badge": "live",
              "children": []
            }
          ]
        }
      ]
    }
  ]
}