Skip to main content
The events endpoint gives you access to the raw, per-request usage records that power all of Tokonomics’ analytics. Each record contains the full token breakdown, precise cost in USD, end-to-end latency, provider, model, and any custom tags you attached. Use it to build custom reports, audit specific requests, or export data into your own data warehouse. Endpoint

Query Parameters

limit
integer
default:"50"
The maximum number of events to return per page. Must be between 1 and 200. Defaults to 50.
offset
integer
default:"0"
The number of events to skip before returning results. Use this together with limit to paginate through large result sets. Defaults to 0.

Response Fields

events
array
An array of UsageEvent objects, ordered from most recent to oldest.
total
integer
The total number of events matching the query (before pagination). Use this with limit and offset to determine how many pages exist.
limit
integer
The limit value that was applied to this response.
offset
integer
The offset value that was applied to this response.
To paginate through all events, increment offset by limit on each request until offset >= total. For example, if total is 340 and you’re using limit=100, you’ll need 4 requests with offsets 0, 100, 200, and 300. The maximum page size is 200.

Example