Budget & Spend Tracking
Get Team Spend Report
Get spend for the calling key's team over a date range, grouped by api_key with a per-model breakdown.
Callable by any key that belongs to a team: non-admin callers are always scoped to their key's team_id, while proxy admins may pass ?team_id= to view any team.
get/team/spend/report
Query parameters
start_datestring nullable
Time from which to start viewing spend (YYYY-MM-DD)
Time from which to start viewing spend (YYYY-MM-DD)
end_datestring nullable
Time till which to view spend (YYYY-MM-DD)
Time till which to view spend (YYYY-MM-DD)
team_idstring nullable
View spend for a specific team_id. Proxy admin only; other callers are scoped to their key's team.
View spend for a specific team_id. Proxy admin only; other callers are scoped to their key's team.
Response
Successful Response
object[] required