Deprecated
Get full category tree
GET
/categories/tree
Returns the complete active category hierarchy for the resolved tenant as a nested tree of root categories with recursive children. Cached publicly.
Auth: Public (no authentication).
Use /public/categories/tree; this path stays until the storefront and the mobile app have moved.
Parameters
Query Parameters
includeHidden
Opt-in. Also return the categories hidden in the back office (switch « Active » off), flagged visible: false, so a storefront can show them as « Bientôt ». A hidden category always reports productCount: 0. Parsed strictly: true/1 = on, false/0/absent = off. Part of the URL, so Cache-Control and Vary: X-Channel are unchanged.
Type
boolean
Default
falseResponses
Nested category tree
application/json
JSON "ok": true, "data": [ { "id": "string", "slug": "string", "name": "string", "description": "string", "seoTitle": "string", "metaDescription": "string", "imageUrl": "https://example.com", "parentId": "string", "sortOrder": 0, "productCount": 0, "childCount": 0, "visible": true, "updatedAt": "2024-01-01T00:00:00Z", "children": [ { } ] } ]
{
}