Skip to main content
Version: 1.0

Compute Account Size API Definition

The Compute Account Size API lets you view how much quota you consumed across the entire account. This capability is useful for administrators who want to track and monitor usage of multiple accounts. For example, you manage multiple tenants and notice that your account usage is higher than expected.

You use the Compute Corpus Size API to determine that a tenant is over their quota. You decide to revoke the ability for the tenant to add more data to the corpus or perform more searches by disabling API keys.

tip

Check out our interactive API Playground that lets you experiment with this endpoint to view the account size.

note

The request to compute the account size is an expensive operation.

This request requires the Customer ID parameter and the response includes a size object which is the sum of the number of characters and metadata characters.

REST Example

Compute Account Size REST Endpoint Address

Vectara exposes a REST endpoint at the following URL to compute the account size:
https://api.vectara.io/v1/compute-account-size

The API Playground shows the full Compute Account Size REST definition.

gRPC Example

You can find the full Compute Account Size gRPC definition at admin_account.proto.