v2

latestOpenAPI 3.1.02026-08-05267431678.1 KB
billing

Get Billing Usage Timeseries Routed Savings

Router savings bucketed by time interval for the home page chart.

When routing is live for the team the points are realized savings stamped on routed inferences. When it is not, the points are an estimate of what the router could have saved, derived from the team's real billed spend; the router_on flag on the response tells the client which regime applies so it can label/colour the line accordingly. scope='personal' narrows both paths to the requesting user.

get/billing/usage/timeseries-routed-savings

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.

scope'team' | 'personal'

team (default) aggregates the active team's usage; personal narrows to the requesting user's own usage (home page toggle).

team (default) aggregates the active team's usage; personal narrows to the requesting user's own usage (home page toggle).

Response

Successful Response

router_onboolean