Dashboard
Files

File Tree

File Tree

GET/v2/tasks/{task_id}/files/tree

Path Parameters

task_idstring · uuidrequired

Query Parameters

pathstringoptional

Root of the tree (default: workspace root)

max_depthintegeroptional
max_entriesintegeroptional
Request
curl --request GET \
  --url https://api.brainbaselabs.com/v2/tasks/{task_id}/files/tree \
  --header 'Authorization: Bearer YOUR_API_KEY'
Response
json
{
  "name": "string",
  "path": "string",
  "is_dir": true,
  "size": 0,
  "children": [
    {}
  ]
}