---
title: "Retrieve the category tree"
method: GET
path: "/taxonomies/categories/tree"
tags: ["Categories"]
---

# Retrieve the category tree

`GET /taxonomies/categories/tree`

## Request

- Base URL: `https://api.cavuno.com/v1`
- URL: `https://api.cavuno.com/v1/taxonomies/categories/tree`
- Auth: HTTP bearer

Returns top-level categories with their descendants nested under `children`. The same data as `GET /v1/taxonomies/categories`, assembled into a hierarchy for menus and pickers. Not paginated: capped at 1000 nodes, above which it returns 400. Page the flat list for larger taxonomies.

## Response `200`

Successful response.

- object
  - `object` 'list', required
  - `url` string, required
  - `hasMore` boolean, required
  - `nextCursor` string, nullable, required
  - `data` Category[], required
    - `id` string, required
    - `object` 'category', required
    - `name` string, required
    - `slug` string, required
    - `aliasSlugs` string[], required
    - `sourceLocale` string, nullable, required
    - `parentId` string, nullable, required
    - `createdAt` string, required
    - `children` unknown[]
      - unknown

## Other responses

- `400`: Tree too large.

## Changes

- **2026-10-19** `c34152c38176`: 1 info
  - added the optional property `error/upgrade` to the response with the `400` status

[Operation history](https://skmtc.dev/cavuno/apis/cavuno-v1-rest-api/changes/taxonomies/categories/tree/get.md)

---

[API](https://skmtc.dev/cavuno/apis/cavuno-v1-rest-api.md) · [All operations](https://skmtc.dev/cavuno/apis/cavuno-v1-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cavuno/apis/cavuno-v1-rest-api/revisions/d5974dabff14?raw)
