Retrieve granular usage data for a specific customer and billable metric, with the ability to break down usage by custom grouping dimensions. This endpoint enables deep usage analytics by segmenting data across attributes like region, user, model type, or any custom dimension defined in your billable metrics.
An array of PagedUsageAggregate
objects containing:
starting_on
and ending_before
: Time window boundariesgroup_key
: The dimension being grouped by (e.g., “region”)group_value
: The specific value for this group (e.g., “US-East”)value
: Aggregated usage for this group and time windownext_page
: Pagination cursor for large datasetscustomer_id
, billable_metric_id
, and window_size
window_size
to hour, day, or none for different granularitiesgroup_by
to specify:
next_page
for large result setsgroup_value
may be null for unmatched dataBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Max number of results that should be returned
1 <= x <= 100
Cursor that indicates where the next page of results should start.
The usage query to run
The body is of type object
.
Success
The response is of type object
.