admin

Cost aggregation across all workspaces (admin)

Aggregate LLM + embedding cost across every workspace.

Admin-only (require_admin). workspace_id here is a convenience filter — admins can scope to one workspace without using the workspace-scoped route — but absent it, every workspace is included.

get/api/v1/admin/cost-aggregation

Request

  • Base URL: https://memory.kagura-ai.com (the document declares no server; this is the origin it was published from)
  • URL: https://memory.kagura-ai.com/api/v1/admin/cost-aggregation
  • Auth: none declared

Query parameters

periodstring

Aggregation period: day | week | month

fromstring date required

Inclusive lower-bound date

tostring date required

Inclusive upper-bound date

workspace_idstring uuid nullable

Filter to a single workspace

user_idstring nullable

Filter to a single user

sourcestring nullable

Filter by source: ['sleep', 'analysis', 'supersede_verify']

paid_bystring nullable

Filter by billing classification: ['platform', 'byok']

Response

Successful Response

rowsunknown required

Changes

No recorded changes to this operation across all 1 revision of this API.