Atlas
Admin — Usage

Historical usage aggregates

Returns historical usage summaries aggregated by period (daily or monthly). Supports date range filtering and limit.

GET
/api/v1/admin/usage/history

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:3001/api/v1/admin/usage/history"
{
  "workspaceId": "string",
  "period": "daily",
  "summaries": [
    {
      "id": "string",
      "workspace_id": "string",
      "period": "string",
      "period_start": "string",
      "query_count": 0,
      "token_count": 0,
      "active_users": 0,
      "storage_bytes": 0,
      "updated_at": "string",
      "property1": null,
      "property2": null
    }
  ]
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}
{
  "property1": null,
  "property2": null
}
{
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}
{
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}
Edit on GitHub

Last updated on