Usage aggregates
Read-only account aggregates. The path has no account ID, but required query account_id is resolved by EnsureCurrentAccountHelper into Current.account after membership validation; this is not session-only resolution. Requires a User membership with administrator or manager role. Foreign, nonexistent and omitted account IDs return the same 401 access denial for a signed-in user. period_start is inclusive and period_end exclusive, at most 366 days apart. Defaults to resolutions grouped by resolution_class,resolver,outcome; usage defaults to period_bucket,channel_type,billing_unit. Grouping dimensions must be unique. Usage supports period_bucket,channel_type,billing_unit,provider,carrier,direction,country; resolutions supports resolution_class,resolver,outcome. channel is usage-only. A persisted UTC calendar-month snapshot is used when available (latest by default); version requires exactly a calendar month and an existing version. Otherwise queries live analytics. Empty groups return data [] with has_more false. Topics enablement does not gate this endpoint. Provider unavailability or malformed analytics data returns 503. P2 owns the broader account-resolution review.
Authorizations
This token can be obtained by visiting the profile page or via rails console. Provides access to endpoints based on the user permissions levels. This token can be saved by an external system when user is created via API, to perform activities on behalf of the user.
Query Parameters
Account to resolve through the authenticated caller membership.
Inclusive ISO 8601 start.
Exclusive ISO 8601 end; maximum interval 366 days.
Aggregate measure.
usage, resolutions Comma-separated dimension names; must be unique.
Optional usage channel filter from the supported channel types.
Positive persisted snapshot version.
x >= 1One-based page.
x >= 1Rows per page.
1 <= x <= 100Response
Actual synthetic request response; see topic analytics evidence.
Versioned account-scoped usage or resolution aggregates.
Aggregate schema version.
1 Account resolved from the required account_id query parameter after membership checks.
Inclusive period start.
Exclusive period end.
Measure being aggregated.
usage, resolutions Effective grouping dimension names.
Grouping dimension.
One page of groups; empty data means no groups.
Pagination.
True when served from an account-scoped persisted monthly snapshot.
Snapshot metadata, or null for live periods.