---
title: "Get Knowledge Base Tree"
method: GET
path: "/v1/knowledge-bases/{knowledge_base_id}/tree"
tags: ["V1 - Knowledge Bases"]
---

# Get Knowledge Base Tree

`GET /v1/knowledge-bases/{knowledge_base_id}/tree`

## Request

- Base URL: `https://api.app.noxus.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.app.noxus.ai/v1/knowledge-bases/{knowledge_base_id}/tree`
- Auth: API key in header `X-API-Key`

Get a hierarchical tree view of files and folders in a knowledge base.

## Path parameters

- `knowledge_base_id` string, required

## Query parameters

- `folder` string: Root folder path
- `max_depth` integer: Maximum tree depth

## Response `200`

Successful Response

- string

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/noxus/apis/noxus-backend.md) - [All operations](https://skmtc.dev/noxus/apis/noxus-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/noxus/apis/noxus-backend/revisions/0e37810b7ad5?raw)
