Estimate costs for a batch of events in real-time. This is a stateless pricing API — you send events directly, and we return estimated costs based on your org-level rate cards.
Use cases:
How it works:
eventTypeFilter.includeaggregationKeygroupKeysImportant notes:
pricing:read
Rate Limit: 100 requests per minute per IP (see rate limits)
Best Practices:
estimatedAt to indicate when the estimate was calculatedBearer authentication header of the form Bearer <token>, where <token> is your auth token.
Events to estimate pricing for. Batch multiple events in a single request for better performance.
1 - 500 elementsOptional: Cost per credit in cents (e.g., 750 = $7.50/credit).
When provided, amounts are returned in credits instead of USD.
Uses the same rate semantics as contract creditSettings.creditRateCents.
x >= 1Cost estimate with per-meter breakdown
Cost estimate result with per-event and per-meter breakdown. Response shape varies based on whether creditRateCents was provided in the request.
Per-event cost breakdown. Each entry corresponds to an input event. When idempotencyKey was provided on the input event, it is echoed back here for correlation.
Breakdown of estimated costs per meter. Only meters that matched at least one event are included.
Grand total across all meters. In USD when unit=currency, in credits when unit=credits.
Currency code. Only present when unit=currency.
USD The credit rate used for conversion (cents per credit). Only present when unit=credits.
Unit of the amounts in the response.
currency, credits ISO 8601 timestamp when the estimate was calculated. Use this to indicate freshness when caching.