List usage events
Returns paginated raw usage events for the org, newest first. All filter params AND together; multi-value metric_key is repeatable or comma-separated. Cursor is opaque (timestamp + id) - pass the previous response's pagination.cursor to load the next page. Page size defaults to 25, max 100.
query Parameters
limitPage size (default 25, max 100)
cursorPagination cursor
customer_idFilter by customer UUID
product_idFilter by product UUID
subscription_idFilter by subscription UUID
metric_keyFilter by metric key. Repeatable or comma-separated.
occurred_afterFilter by timestamp >= value (RFC3339)
occurred_beforeFilter by timestamp < value (RFC3339)
List usage events › Responses
Paginated list with data and pagination envelope
customer_idexternal_cost_amountexternal_cost_currencyididempotency_keyingested_atmetric_keyorganization_idprice_keyproduct_idquantitysubscription_idtimestampwallet_currencyWalletCurrency, when non-nil, pins the event to a specific wallet at finalize time: the meter evaluator groups by this column and the resulting invoice routes to wallet (customer_id, *WalletCurrency). NULL falls back to the customer's preferred-currency cascade — identical to pre-040 behaviour, so legacy events keep working.
Time-bucketed usage aggregate
Server-side aggregation over the usage_events hypertable. Replaces the chart UI's old client-side bucketing so totals are accurate regardless of event volume. Caps the window at MaxAggregateBuckets at the requested resolution.
query Parameters
bucketBucket size: hour | day | week
sinceWindow lower bound (RFC3339)
untilWindow upper bound (RFC3339); defaults to now
metricMetric: count (default) | sum_quantity
group_byGrouping: none (default) | metric_key | dim:
customer_idFilter by customer UUID
product_idFilter by product UUID
subscription_idFilter by subscription UUID
metric_keyFilter by metric_key. Repeatable or comma-separated.
topTruncate to top-N series, fold the rest into 'Other' (default 8; 0 disables)
Time-bucketed usage aggregate › Responses
OK
bucketgroup_bymetricseriessinceuntil