Calculate the actual cost of usage events stored in your account. Unlike the pricing estimate endpoint (which prices synthetic events you send), this endpoint queries your real events from the database and returns accurate costs.
How it works:
eventTypeFilterImportant notes:
contractId is provided, uses contract-specific pricing (from the contract’s pricing items), matching invoice generation exactlycontractId, uses org-level rate cards (list pricing)customerId, externalCustomerId, or contractId is requiredcontractId, dates default to the contract’s effective/termination datesusage:readDocumentation Index
Fetch the complete documentation index at: https://docs.monk.com/llms.txt
Use this file to discover all available pages before exploring further.
API key passed as Bearer token. Requires usage:read scope.
Start of the date range (inclusive). ISO 8601 format. Required unless contractId is provided (defaults to contract effective date).
End of the date range (exclusive). ISO 8601 format. Required unless contractId is provided (defaults to contract termination date, or today for rolling contracts).
Internal customer UUID. Provide this, externalCustomerId, or contractId.
Your external customer reference. Provide this, customerId, or contractId.
Contract UUID. When provided, pricing uses the contract's specific rate cards and pricing items (matching invoice generation exactly), and customerId and date range are derived from the contract. If the contract has no termination date (rolling/month-to-month), the end date defaults to today. You can still provide explicit startDate/endDate to override the contract dates. If customerId is also provided, it must match the contract owner.
Filter to specific event names. Only meters matching these event names will be queried. When omitted, all active meters are included.
50Additional property filters applied to the query. Each filter adds a WHERE condition on event properties. Useful for tenant isolation (sub_org_id), environment filtering, or feature attribution.
20Response unit. currency returns USD amounts. credits converts USD to credits using the rate from the customer's most recent credit grant. If no grant with a credit rate exists, falls back to currency.
currency, credits Usage cost calculated successfully
Total cost. In USD when unit is currency, in credits when unit is credits.
Currency code. Only present when unit is currency.
USD The credit rate used for conversion (cents per credit). Only present when unit is credits. Auto-resolved from the customer's most recent credit grant.
currency for USD responses, credits when credit conversion was applied.
currency, credits Start of the queried date range.
End of the queried date range.
Timestamp when the query was executed.
The contract ID used for the query. Only present when contractId was provided in the request.