Estimate event credit cost
Estimates the credit cost of a usage event without ingesting it. Returns the estimated cost per credit currency, the current balance, and the balance after the estimated consumption.
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).
Body
Estimate the credit cost of a usage event before reporting it
The name of the usage event
1 - 255Customer id
1 - 255^[a-zA-Z0-9][a-zA-Z0-9_|.@-]*$Resource id
1 - 255^[a-zA-Z0-9][a-zA-Z0-9_|.-]*$Dimensions associated with the usage event
Response
The credit cost estimation, including per-currency costs, balances, and warnings.
Response object
Estimated credit cost, current balance and balance after
