Get usage analytics
Authorizations
OAuth 2.1 authorization-code flow with PKCE.
Headers
Workspace this request operates in — the workspace id (wksp_…) or the organization id, from GET /workspaces. Required with an API key, which carries no workspace (400 WORKSPACE_REQUIRED without it). With an OAuth token it defaults to the workspace the token was issued for. Responds 403 WORKSPACE_FORBIDDEN when the caller is not a current member, rather than falling back to another workspace.
Query Parameters
Aggregation window.
DAY, WEEK, MONTH, QUARTER, YEAR Response
Successful response.
Aggregated usage analytics with time-bucketed data. Granularity depends on the period: DAY -> hourly buckets WEEK, MONTH -> daily buckets QUARTER, YEAR -> monthly buckets
Time-bucketed usage (hourly, daily, or monthly depending on period)
Breakdown by stream quality tier
Number of streaming sessions in the requested period
Total credits spent in the requested period
Total minutes in the requested period