> ## Documentation Index
> Fetch the complete documentation index at: https://docs.voyantcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Gallery Stats

> Retrieve aggregate gallery usage metrics for the workspace.

## Method

`GET` `/v1/gallery/stats`

## Headers

<ParamField header="Authorization" type="string">Bearer token (e.g. <code>Authorization: Bearer YOUR\_API\_KEY</code>)</ParamField>

## Request Example

<RequestExample>
  ```bash cURL theme={null}
  curl "https://api.voyantcloud.com/v1/gallery/stats" \
    -H "Authorization: Bearer $VOYANT_API_KEY"
  ```

  ```javascript Node.js theme={null}
  const res = await fetch("https://api.voyantcloud.com/v1/gallery/stats", {
    headers: { Authorization: `Bearer ${process.env.VOYANT_API_KEY}` },
  })
  const stats = await res.json()
  ```

  ```python Python theme={null}
  import os, requests

  resp = requests.get(
    "https://api.voyantcloud.com/v1/gallery/stats",
    headers={"Authorization": f"Bearer {os.environ['VOYANT_API_KEY']}"},
  )
  stats = resp.json()
  ```
</RequestExample>

## Response

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "totalFiles": 128,
    "totalFolders": 9,
    "rootCount": 37,
    "totalSize": 854237812,
    "folderCounts": {
      "11111111-1111-1111-1111-111111111111": 42,
      "22222222-2222-2222-2222-222222222222": 16
    }
  }
  ```
</ResponseExample>

<Tip>`totalSize` is in bytes. Convert to megabytes/gigabytes as needed for dashboards.</Tip>
