Skip to main content
The daily endpoint returns a time-series of your AI spend aggregated by calendar day. Use it to plot spend trends, detect anomalies, or understand how usage ramps up over a billing period. You can request up to 90 days of history in a single call. Endpoint
GET https://tokonomics.ca/analytics/daily

Query Parameters

days
integer
default:"30"
The number of past days to include in the response, counting back from today. Must be between 1 and 90. Defaults to 30.
GET /analytics/daily?days=14

Response Fields

days
array
An array of daily spend records ordered from oldest to most recent.

Example

curl "https://tokonomics.ca/analytics/daily?days=7" \
  -H "Authorization: Bearer mk_your_key"