Get credit usage
Retrieves credit usage time-series data for a customer, grouped by feature, over a specified time range.
Query parameters
Maximum number of items to return
Return items that come after this cursor
Return items that come before this cursor
Filter by customer ID (required)
Filter by resource ID
Filter by currency ID
Time range for usage data (LAST_DAY, LAST_WEEK, LAST_MONTH, LAST_YEAR). Defaults to LAST_MONTH
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_$-]+$/
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).
Response
Credit usage data with time-series points per feature.
Changes
Changed in 10 of the 115 revisions of this API.21010
- ○
added the required property
data/series/items/eventCountto the response with the200statusresponse-required-property-added
- ○
added the required property
data/series/items/points/items/eventCountto the response with the200statusresponse-required-property-added
- ○
- ●
added the new
ContractNotFoundenum value to thecoderesponse property for the response status404response-property-enum-value-added
- ●
- ●
added the new
CreditOveragePriceCurrencyNotFoundenum value to thecoderesponse property for the response status400response-property-enum-value-added
- ●
added the new
InvalidCreditOverageBillingModelenum value to thecoderesponse property for the response status400response-property-enum-value-added
- ●
added the new
InvoicePreviewNotAvailableForDraftContractenum value to thecoderesponse property for the response status400response-property-enum-value-added
- ●
added the new
OveragePriceNotSupportedOnAddonenum value to thecoderesponse property for the response status400response-property-enum-value-added
- ●
added the new
OveragePriceRequiresUsageLimitenum value to thecoderesponse property for the response status400response-property-enum-value-added
- ●
- ●
added the new
GovernanceNotEnabledenum value to thecoderesponse property for the response status403response-property-enum-value-added
- ●
- ○
added the new optional
headerrequest parameterX-ACCOUNT-IDnew-optional-request-parameter
- ○
added the new optional
headerrequest parameterX-ENVIRONMENT-IDnew-optional-request-parameter
- ○
- ●
added the new
PricingModelNotSupportedByBillingIntegrationenum value to thecoderesponse property for the response status400response-property-enum-value-added
- ●
- ○
added the new optional
queryrequest parameterafternew-optional-request-parameter
- ○
added the new optional
queryrequest parameterbeforenew-optional-request-parameter
- ○
added the new optional
queryrequest parameterlimitnew-optional-request-parameter
- ○
added the required property
data/paginationto the response with the200statusresponse-required-property-added
- ○
- ●
added the new
DataExportIntegrationErrorenum value to thecoderesponse property for the response status400response-property-enum-value-added
- ●
- ●
added the new
InvalidReceivedSignatureErrorenum value to thecoderesponse property for the response status400response-property-enum-value-added
- ●
- ▲
the response property
data/series/items/featureIdbecame nullable for the status200response-property-became-nullable
- ▲
the response property
data/series/items/featureNamebecame nullable for the status200response-property-became-nullable
- ○
added the new optional
queryrequest parametergroupBynew-optional-request-parameter
- ○
added the optional property
data/series/items/tagsto the response with the200statusresponse-optional-property-added
- ▲