Get LLM-spend timeseries
API Reference
Get LLM-spend timeseries
Returns LLM spend bucketed over time so the dashboard can plot a spend trend line. Choose hour or day granularity; hour granularity is capped at a 14-day window (use day granularity for longer ranges). Each bucket carries total tokens and total cost in integer cents. Read-only, tenant-scoped.
GET
Get LLM-spend timeseries
Authorizations
Dashboard JWT token from Clerk
Query Parameters
Window start, ISO-8601 with offset. Defaults to 7 days (hour) or 30 days (day) before to.
Window end, ISO-8601 with offset. Defaults to now.
Bucket size. hour is limited to a 14-day window.
Available options:
hour, day Response
200 - application/json
One row per time bucket with total tokens and total spend in integer cents.
The response is of type object.