List folders as a tree
get
https://api.expiryedge.com/v1/getAllFoldersany role (admin, editor or viewer)60/min
Anfrage
curl 'https://api.expiryedge.com/v1/getAllFolders' \
-H "Authorization: Bearer $EXPIRYEDGE_API_KEY"Antwort
{
"success": true,
"folders": [
{
"id": "fld_2Kp9",
"name": "Licenses",
"parent_folder_id": null,
"folder_path": "/Licenses",
"user_id": "u_71bXq",
"organization_id": "org_northwind",
"is_deleted": false,
"expiry_count": 6,
"created_at": "2026-09-27T14:05:00.000Z",
"updated_at": "2026-09-27T14:05:00.000Z",
"children": [
{
"id": "fld_8Tz4",
"name": "State Board",
"parent_folder_id": "fld_2Kp9",
"folder_path": "/Licenses/State Board",
"user_id": "u_71bXq",
"organization_id": "org_northwind",
"is_deleted": false,
"expiry_count": 2,
"created_at": "2026-09-27T14:06:00.000Z",
"updated_at": "2026-09-27T14:06:00.000Z",
"children": []
}
]
}
],
"total_count": 2,
"root_count": 1
}Returns root folders with nested children and each folder's expiry_count (non-archived expiries).
Deleted folders are excluded. Returns all folders; unbounded.
200
Folder tree.
successbooleanerforderlichfoldersarray of objectserforderlichRoot folders, each with nestedchildren.total_countintegererforderlichAll non-deleted folders.root_countintegererforderlich
400 | The request is missing required fields or contains invalid values. |
401 | Missing, expired or invalid bearer token. |
404 | The record does not exist or is not in your organization. |
429 | Too many requests for this endpoint from your IP. Wait Retry-After seconds. |
