Skip to main content

Method

GET /v1/gallery/stats

Headers

Authorization
string
Bearer token (e.g. Authorization: Bearer YOUR_API_KEY)

Request Example

curl "https://api.voyantcloud.com/v1/gallery/stats" \
  -H "Authorization: Bearer $VOYANT_API_KEY"

Response

{
  "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.