v2

latestOpenAPI 3.1.02026-08-05267431678.1 KB
billing

Get Billing Usage Timeseries Tokens

Token volume (input + output) bucketed by time interval.

get/billing/usage/timeseries-tokens

Query parameters

start_datestring nullable

Range start (ISO date or datetime, UTC); ignored when full_history=true

Range start (ISO date or datetime, UTC); ignored when full_history=true

end_datestring nullable

Range end (ISO date or datetime, UTC); with full_history, caps the window

Range end (ISO date or datetime, UTC); with full_history, caps the window

full_historyboolean

If true, span from the team's first request through end (or now); ignores start_date

If true, span from the team's first request through end (or now); ignores start_date

interval_minutesinteger

Bucket width in minutes (default 1440 = daily). Values >= 10080 bucket by week and >= 43200 by month so long ranges stay bounded in point count.

Bucket width in minutes (default 1440 = daily). Values >= 10080 bucket by week and >= 43200 by month so long ranges stay bounded in point count.

Response

Successful Response