GET
/
workspace
/
folders
/
stats
curl --request GET \
  --url https://api.mudstack.com/workspace/folders/stats \
  --header 'Authorization: Bearer <token>' \
  --header 'x-account-id: <x-account-id>' \
  --header 'x-workspace-id: <x-workspace-id>'
{
  "total_folders": 123,
  "total_files": 123,
  "total_size": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-account-id
string
required
x-workspace-id
string
required

Query Parameters

folder
string
required

The path of the folder to retrieve statistics for.

library_id
string

The ID of the library to retrieve statistics for.

Response

200 - application/json
Folder statistics retrieved successfully.

Statistics related to folders and files within a workspace.

total_folders
integer

The total number of folders.

total_files
integer

The total number of files.

total_size
integer

The total size of all files in bytes.