curl --request GET \
--url https://api.tiro.ooo/v1/external/users/me/folders/tree \
--header 'Authorization: Bearer <token>'{
"content": [
{
"id": "folder-root",
"title": "Root Folder",
"parentId": null,
"depth": 0,
"isAccessible": true,
"children": [
{
"id": "folder-child1",
"title": "Sub Folder 1",
"parentId": "folder-root",
"depth": 1,
"isAccessible": true,
"children": []
}
]
}
]
}Retrieve user folder hierarchy as a tree structure
curl --request GET \
--url https://api.tiro.ooo/v1/external/users/me/folders/tree \
--header 'Authorization: Bearer <token>'{
"content": [
{
"id": "folder-root",
"title": "Root Folder",
"parentId": null,
"depth": 0,
"isAccessible": true,
"children": [
{
"id": "folder-child1",
"title": "Sub Folder 1",
"parentId": "folder-root",
"depth": 1,
"isAccessible": true,
"children": []
}
]
}
]
}