> For the complete Lynkow documentation index in agent-friendly format, see [llms.txt](/llms.txt).

# Get the product category tree

**Publié le** : 2026-08-19
**Catégorie** : Commerce

## `GET /product-categories/tree`

**Get the product category tree**

Returns the visible category hierarchy for the `:siteId` in the URL.
Inactive and internal nodes are removed with their entire branch, so a
visible descendant of a hidden parent is not promoted or exposed. Each node
contains only its public wire id, display fields, position, SEO fields, and
nested children. Visibility flags, materialized paths, parent identifiers,
metadata, tenant identifiers, timestamps, storage paths, and raw UUIDs are
never returned.

> **Note:** This endpoint requires the e-commerce feature to be enabled on your site.

### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `401` | Missing or invalid storefront publishable key |
| `402` | The site subscription does not currently permit this operation |
| `403` | The storefront key origin is not allowed |
| `404` | Site, resource, or commerce feature not found |


---