Claude Platform Docs

Usage

Get Token Usage By Dimension
beta.organization.analytics.usage.list(**kwargs) -> ReportPageCursor<BetaAnalyticsUsageItem>
GET/v1/organizations/analytics/usage
Requires anthropic-beta: analytics-usage-cost-2026-08-24. Learn how to send beta headers.

Get token usage across a date range, broken out by dimension.

Models
class BetaAnalyticsUsageGroup { actor, actor_type, agent_id, 17 more }

The dimension values one usage row is broken out by; each is null unless its dimension is in group_by[].

type BetaAnalyticsUsageGroupBy = :actor | :actor_type | :agent_id | 17 more
One of the following:
class BetaAnalyticsUsageItem { ending_at, group, starting_at, usage }
class BetaAnalyticsUsageMetrics { cache_creation, cache_read_input_tokens, output_tokens, 4 more }

The token usage of one row.

type BetaAnalyticsUsageOrderBy = :output_tokens | :requests | :time | 2 more
One of the following:
:output_tokens
:requests
:time
:total_tokens
:uncached_input_tokens