Skip to main content
GET
Get directory tree

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

path
string
required

Root directory path

Query Parameters

recursive
boolean

List every file and directory below the path, not only its direct children (default: false)

content
boolean

Include the content of each regular file, as UTF-8 text (default: false)

patterns
string

Comma-separated glob patterns matched against file names (e.g., .json,.md). Directories are not filtered.

excludeDirs
string

Comma-separated directory names to skip with everything below them (default: none)

excludeHidden
boolean

Skip files and directories whose name starts with a dot (default: false)

maxFiles
integer

Fail with 422 when more files match (default: 10000 with recursive or content, otherwise unlimited; at most 100000)

maxBytes
integer

With content=true, fail with 422 when the matching files hold more bytes (default: 33554432, 32 MiB; at most 268435456, 256 MiB)

Response

Directory tree

files
object[]
required
name
string
required
path
string
required
subdirectories
object[]
required

@name Subdirectories

recursive
boolean

Recursive is true when files and subdirectories hold every level below path (tree read with recursive=true). Older APIs ignore that parameter and omit this field, so clients can tell a one-level listing apart.