---
title: "Get Usage"
method: GET
path: "/v1/files:usage"
---

# Get Usage

`GET /v1/files:usage`

Get storage usage statistics for the authenticated organization.

Args:
    identity: Authentication identity containing org_id
    db: Database session
    
Returns:
    FileUsage: Usage statistics including total/used bytes and file count
    
Raises:
    HTTPException: 500 if unable to calculate usage

## Response `200`

Successful Response

- FileUsage — Storage usage information for an organization. Attributes: total: Human-readable total storage limit used: Human-readable used storage amount total_bytes: Total storage limit in bytes used_bytes: Used storage amount in bytes num_files: Number of files stored
  - `total` string, required
  - `used` string, required
  - `total_bytes` integer, required
  - `used_bytes` integer, required
  - `num_files` integer, required

## Changes

- **2025-10-07** `62c455aac36a` — 2 info
  - the endpoint scheme security `OAuth2PasswordBearer` was added to the API
  - the endpoint scheme security `ApiKeyAuth` was removed from the API
- **2025-10-06** `8814c306e6ef` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/spi-tch/apis/spitch-api/changes/v1/files:usage/get.md)

---

[API](https://skmtc.dev/spi-tch/apis/spitch-api.md) · [All operations](https://skmtc.dev/spi-tch/apis/spitch-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/spi-tch/spitch-api/revisions/b384c3db1a21/schema)
