---
title: "Get Tree"
method: GET
path: "/drive/tree"
tags: ["drive"]
---

# Get Tree

`GET /drive/tree`

## Request

- Base URL: `https://api.moda.app/v1`
- URL: `https://api.moda.app/v1/drive/tree`
- Auth: HTTP bearer

The folder tree (bounded depth) — how the user's workspace is organized.

Mirror this structure when placing new work instead of inventing a new
hierarchy. Same visibility/hidden-folder pruning as the app's tree.

## Query parameters

- `depth` integer: How many folder levels to include (1 = top-level folders only). Levels beyond the bound are marked ``children_truncated`` on their parent, never silently dropped.

## Headers

- `Moda-Version` '2026-04-12' | '2026-05-01'

## Response `200`

Successful Response

- object

## Other responses

- `401`: Authentication required.
- `402`: Insufficient credits for a metered operation.
- `403`: Permission denied for this scope.
- `404`: Resource not found.
- `409`: Conflict (idempotency / resource state).
- `422`: Request validation failed.
- `429`: Rate limit exceeded.
- `500`: Internal error.

## Changes

- **2026-11-03** `9ac6a3abc0f8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/moda/apis/moda-public-api/changes/drive/tree/get.md)

---

[API](https://skmtc.dev/moda/apis/moda-public-api.md) - [All operations](https://skmtc.dev/moda/apis/moda-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/moda/apis/moda-public-api/revisions/9ac6a3abc0f8?raw)
