JavaScript
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}}; fetch('https://studyfetchapi.com/api/v1/folders/tree', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
[ { "_id": {}, "name": "<string>", "organizationId": "<string>", "status": "active", "subfolders": "<array>", "parentFolderId": "<string>", "description": "<string>", "metadata": { "color": "<string>", "icon": "<string>", "materialCount": 123, "totalSize": 123, "lastActivity": "2023-11-07T05:31:56Z" }, "createdAt": {}, "updatedAt": {} } ]
API Key for authentication
Folder tree retrieved successfully
Folder ID
Folder name
Organization ID
Folder status
active
deleted
Nested subfolders
Parent folder ID
Folder description
Folder metadata
Show child attributes
Folder color
Folder icon
Number of materials in folder
Total size of materials in folder
Last activity date
Creation date
Last update date
Was this page helpful?