Method
GET /v1/gallery/stats
Headers
Bearer token (e.g.
Authorization: Bearer YOUR_API_KEY)curl "https://api.voyantcloud.com/v1/gallery/stats" \
-H "Authorization: Bearer $VOYANT_API_KEY"
{
"totalFiles": 128,
"totalFolders": 9,
"rootCount": 37,
"totalSize": 854237812,
"folderCounts": {
"11111111-1111-1111-1111-111111111111": 42,
"22222222-2222-2222-2222-222222222222": 16
}
}
Retrieve aggregate gallery usage metrics for the workspace.
GET /v1/gallery/stats
Authorization: Bearer YOUR_API_KEY)curl "https://api.voyantcloud.com/v1/gallery/stats" \
-H "Authorization: Bearer $VOYANT_API_KEY"
{
"totalFiles": 128,
"totalFolders": 9,
"rootCount": 37,
"totalSize": 854237812,
"folderCounts": {
"11111111-1111-1111-1111-111111111111": 42,
"22222222-2222-2222-2222-222222222222": 16
}
}
totalSize is in bytes. Convert to megabytes/gigabytes as needed for dashboards.