---
title: GET /api/v1/docs/tree
description: Get Tree
locale: ru
version: 0.2.0
canonical: https://enterium-developer-docs.pages.dev/developers/ru/api/docs/get-docs-tree/
---

> Documentation index: https://enterium-developer-docs.pages.dev/developers/llms.txt — every page of this portal has a Markdown twin at <route>.md; the frozen API contract is at https://enterium-developer-docs.pages.dev/developers/api/openapi.json.

:::note
Сгенерировано из OpenAPI-контракта — не редактировать руками. Сводки операций и описания полей приводятся на английском (дословно из контракта). Интерактивный обозреватель с полными схемами: [https://entherium.duckdns.org:8443/reference](https://entherium.duckdns.org:8443/reference); замороженная спецификация этой сборки: [openapi.json](/developers/api/openapi.json). Группа: [docs](../).
:::

Get Tree

: recursive tree of.md files + dirs.

**Авторизация:** нужен `Authorization: Bearer <token>`

## Запрос

```sh
curl -sS -X GET "https://entherium.duckdns.org:8443/api/v1/docs/tree" \
  -H "Authorization: Bearer <token>"
```

## Ответ `200`

В контракте нет примера для этого ответа; схема: `массив TreeNode`. Поля — в [интерактивном обозревателе](https://entherium.duckdns.org:8443/reference).

## Возвращает

`массив TreeNode` — Successful Response

| Поле | Тип | Описание |
| --- | --- | --- |
| `children` | `массив TreeNode \| null` (opt.) |  |
| `name` | `string` |  |
| `path` | `string` |  |
| `type` | `string` |  |

## Параметры

Нет.

## Ошибки

| Код | Смысл | Тело |
| --- | --- | --- |
| `401` | Missing or invalid authentication credentials | `ErrorResponse` |

Тело любой ошибки — `{detail, code?, request_id, doc_url}`: `request_id` — что цитировать, `doc_url` ведёт в [Справочник ошибок](../../../reference/errors/).
