Skip to main content
GET
/
v1
/
external
/
users
/
me
/
folders
/
tree
Get User Folder Tree
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": []
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

API key in format {id}.{secret}

Query Parameters

maxDepth
integer

Maximum depth of the tree to return (optional)

Required range: 1 <= x <= 5
Example:

3

Response

User folder tree structure

content
object[]
required

Array of items