Use this file to discover all available pages before exploring further.
The categories endpoint returns all categories as a flat list. Each category carries a parentId field that references another category’s id, enabling clients to reconstruct the full hierarchy tree on the front end. A nullparentId indicates a root-level category with no parent. No authentication is required.
Returns every category in the database, ordered alphabetically by name. The list is flat — hierarchy is expressed through parentId references, and tree construction is left to the client.
The id of the parent category, or null if this is a root-level category. Use this field to build a tree client-side by grouping categories by parentId.
The list is intentionally flat. To render a category tree, group the results by parentId and recursively nest children under their parent. Root categories have parentId: null.
To filter the storefront catalog by category, fetch the products list and cross-reference with the categories array returned by GET /api/v1/products/:slug. The product-to-category mapping lives in the productCategories join table and is embedded in the single-product response.