Cost aggregation scoped to one workspace (owner/admin)
Aggregate cost for a single workspace.
Requires workspace owner or admin role — viewer / member are rejected because cost aggregates leak per-user activity volume across private contexts that those roles should not see. Owners review billing; admins manage workspace settings.
Cross-workspace probing is impossible here: the path-bound workspace_id is the only scope passed to the service, and check_workspace_admin rejects callers without admin/owner membership in that specific workspace before the query runs.
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/workspaces/{workspace_id}/cost-aggregation
- Auth: none declared
Path parameters
Query parameters
Aggregation period: day | week | month
Inclusive lower-bound date
Inclusive upper-bound date
Filter to a single user
Filter by source: ['sleep', 'analysis', 'supersede_verify']
Filter by billing classification: ['platform', 'byok']
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.