Skip to content
Last updated

Get storage usage breakdown by vector store for the organization.

GEThttps://api.aitronos.com/v1/organizations/{organization_id}/vector-stores/usage

Retrieve storage usage statistics for all vector stores in an organization, including total storage used and breakdown by individual vector stores.

Path Parameters

organization_id string required

The unique identifier of the organization.


Returns

A usage summary object containing storage statistics for all accessible vector stores.

cURL
curl "https://api.aitronos.com/v1/organizations/{organization_id}/vector-stores/usage" \
  -H "X-API-Key: $FREDDY_API_KEY"

Response:

200 OK
{
  "message": "Vector store usage retrieved successfully",
  "data": {
    "organization_id": "org_123abc",
    "total_size_bytes": 52428800,
    "total_file_count": 45,
    "vector_stores": [
      {
        "id": "vs_456def",
        "name": "Product Documentation",
        "size_bytes": 31457280,
        "file_count": 25
      },
      {
        "id": "vs_789ghi",
        "name": "Customer Support KB",
        "size_bytes": 20971520,
        "file_count": 20
      }
    ]
  }
}