drive

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.

get/drive/tree

Request

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

Query parameters

depthinteger

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'
Example:2026-05-01

Calendar-dated API version pin. New integrations should pin 2026-05-01 to opt into the newest response shapes. For back-compat the server also accepts requests with no header and resolves them to the current default (today: 2026-04-12); that default advances on each sunset date. Any unsupported value returns 400 unsupported_version.

Response

Successful Response

object required

Changes