FruxonDocs
IntegrationsAssets

Gets token and chunk usage statistics for an asset.

Returns aggregate counts across the asset's current index: indexed documents, chunks, and embedded tokens. Useful for billing dashboards and for sizing decisions before changing the token budget via `PATCH /assets/{asset}`. Reflects the current state of the index, not lifetime totals — deleted documents are excluded. For per-operation cost detail use `GET /assets/{asset}/operations`.

GET
/v1/tenants/{tenant}/assets/{asset}/usage
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

asset*string

The RAG asset ID.

Formatuuid
tenant*string

The tenant identifier

Response Body

curl -X GET "https://api.fruxon.com/v1/tenants/string/assets/497f6eca-6276-4993-bfeb-53cbbbba6f08/usage"
{
  "assetId": "00000000-0000-0000-0000-000000000000",
  "totalTokenCount": 0,
  "totalChunkCount": 0,
  "operationCount": 0
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}