メインコンテンツまでスキップ

List Folders

GET/apiv2/pub/foldersdocuments_read

Returns a paginated list of folders accessible to the token's user, sorted alphabetically by full path.

Request

Query parameters

ParameterTypeDefaultDescription
qstringFilter by name (case-insensitive substring).
parent_idintegerOnly direct children of this folder. 0 = root only.
limitinteger50Page size.
offsetinteger0Pagination offset.

Response

200 OK — Array of folders

FieldTypeDescription
folder_idintegerUnique folder ID.
namestringFolder display name (final segment of path).
full_pathstringFull path (e.g. "Finance->Invoices->2025").
parent_idintegerParent folder ID. 0 = root.
codestringUnique UUID code.
child_countintegerNumber of direct child folders.

Errors

StatusReason
401Invalid or expired token
403Token lacks documents_read scope

cURL

curl -i -X GET "https://portal.docwize.com/apiv2/pub/folders?parent_id=0" \
-H "Authorization: Bearer <ACCESS_TOKEN>"

[
{
"folder_id": 10,
"name": "Finance",
"full_path": "Finance",
"parent_id": 0,
"code": "a1b2c3d4-...",
"child_count": 3
},
{
"folder_id": 42,
"name": "Invoices",
"full_path": "Finance->Invoices",
"parent_id": 10,
"code": "e5f6a7b8-...",
"child_count": 0
}
]
{"detail": "Invalid or expired token"}