Skip to main content
GET
/
filesystem
/
tree
/
{path}
Get directory tree
curl --request GET \
  --url https://sbx-{sandbox_id}-{workspace_id}.{region}.bl.run/filesystem/tree/{path} \
  --header 'Authorization: Bearer <token>'
{
  "files": [
    {
      "group": "<string>",
      "lastModified": "<string>",
      "name": "<string>",
      "owner": "<string>",
      "path": "<string>",
      "permissions": "<string>",
      "size": 123
    }
  ],
  "name": "<string>",
  "path": "<string>",
  "subdirectories": [
    {
      "name": "<string>",
      "path": "<string>"
    }
  ]
}

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

Response

Directory tree

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

@name Subdirectories