Get credit usage
Retrieves credit usage time-series data for a customer, grouped by feature, over a specified time range.
Authorizations
Server API Key
Headers
Account ID — optional when authenticating with a user JWT (Bearer token); falls back to the user's first membership. Ignored for API-key auth.
Environment ID — required when authenticating with a user JWT (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the key).
Query Parameters
Maximum number of items to return
1 <= x <= 100Return items that come after this cursor
255Return items that come before this cursor
255Filter by customer ID (required)
1 - 255^[a-zA-Z0-9][a-zA-Z0-9_|.@-]*$Filter by resource ID
1 - 255^[a-zA-Z0-9][a-zA-Z0-9_|.-]*$Filter by currency ID
1 - 255^[a-zA-Z0-9][a-zA-Z0-9_|.-]*$Time range for usage data (LAST_DAY, LAST_WEEK, LAST_MONTH, LAST_YEAR). Defaults to LAST_MONTH
LAST_DAY, LAST_WEEK, LAST_MONTH, LAST_YEAR Start date for the credit usage time range (ISO 8601). Takes precedence over timeRange when provided
End date for the credit usage time range (ISO 8601). Defaults to now when startDate is provided
Comma-separated list of feature dimension keys to group usage series by (up to 3). Each key matches /^[a-zA-Z0-9_$-]+$/
255Response
Credit usage data with time-series points per feature.
Response object
Credit usage data grouped by feature with time-series points
