The folder tree with document counts (tenant:dms:read)
GET /api/dms/v1/folders
Module: DMS · operationId: listFolders · Tag: Folders · Auth: access token (Authorization: Bearer <accessToken>)
All folders of the tenant, flat (build the tree with parentId), ordered by name, with the documents directly in each folder; plus the documents without a folder and in total.
Responses
- 200 Folders (
application/json)
Fields of the 200 answer:
items(array of Folder, required): Every folder of the tenant the caller may see (not paged)access(string, required): What the caller may do in the folder (one ofREAD,WRITE)createdAt(string (date-time), required): Creation timecreatedBy(string, required): Who created the folderdocumentCount(integer, required): Documents directly in the folder (not in subfolders)id(string (uuid), required): Folder idname(string, required): Folder name, unique among its siblings (max length 255)parentId(string (uuid), nullable, required):nullfor a top-level folderrestricted(boolean, required): The folder or a folder above it limits who may use itupdatedAt(string (date-time), required): Time of the last changeversion(integer, required): Increases with every change; send it withupdateFolder
totalCount(integer, required): All documentsunfiledCount(integer, required): Documents without a folder
Example 200 answer:
{
"items": [
{
"access": "WRITE",
"createdAt": "2026-01-02T08:00:00Z",
"createdBy": "laura.kaestner@muster-it.example",
"documentCount": 0,
"id": "1d3f5a7c-9e1b-4d3f-8a5c-7e9b1d3f5a7c",
"name": "Buchhaltung",
"parentId": null,
"restricted": true,
"updatedAt": "2026-01-02T08:00:00Z",
"version": 1
},
{
"access": "WRITE",
"createdAt": "2026-01-02T08:00:00Z",
"createdBy": "laura.kaestner@muster-it.example",
"documentCount": 42,
"id": "3b1f6a2c-7d4e-4f1a-9c2b-8e5d0a1f7b63",
"name": "Eingangsrechnungen 2026",
"parentId": "1d3f5a7c-9e1b-4d3f-8a5c-7e9b1d3f5a7c",
"restricted": true,
"updatedAt": "2026-06-15T10:12:00Z",
"version": 3
}
],
"totalCount": 128,
"unfiledCount": 7
}
Example request
curl -X GET 'https://api.mbcom.cloud/api/dms/v1/folders' \
-H "Authorization: Bearer $ACCESS_TOKEN"