Get event
Returns resolved usage and the original credit debit. All financial fields use integer nano dollars, where one USD is 1000000000 units, and are encoded as integer strings in JSON. Revenue is the sum of each consumed grant's paid amount multiplied by credits used and divided by its original credits. Each grant allocation truncates below one nano dollar. Subscription payments include invoice discounts; manual grants contribute zero revenue. marginUsdInNanos is revenueUsdInNanos minus costUsdInNanos and is omitted if either is unknown. These amounts describe usage allocation, before fees, refunds, or accounting adjustments.
bearerAuthAuthorizationBearer <token>Environment API key or OAuth access token. OAuth requests select context with X-Orbyte-Environment or X-Orbyte-Organization when required by the operation.
id*stringX-Orbyte-Environment?stringRequired for environment-scoped OAuth operations. API keys remain bound to their own environment.
1 <= lengthRecorded event
application/json- response
value*string^-?(0|[1-9][0-9]*)$length <= 20costUsdInNanos?string^-?(0|[1-9][0-9]*)$length <= 20revenueUsdInNanos?string^-?(0|[1-9][0-9]*)$length <= 20occurredAt*integer0 <= value <= 9007199254740991id*stringcredits*string^-?(0|[1-9][0-9]*)$length <= 20marginUsdInNanos?string^-?(0|[1-9][0-9]*)$length <= 20curl -X GET 'https://api.orbytelabs.com/v1/events/string'{ "value": "string", "costUsdInNanos": "string", "revenueUsdInNanos": "string", "occurredAt": 0, "id": "string", "credits": "string", "marginUsdInNanos": "string"}