Budget & Spend Tracking
Get User Spend Report
Get spend for the calling user over a date range, grouped by api_key with a per-model breakdown.
Same row shape as /global/spend/report?internal_user_id=..., but callable by any key with a user: non-admin callers are always scoped to their own user_id, while proxy admins may pass ?internal_user_id= to view any user.
get/user/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)
internal_user_idstring nullable
View spend for a specific internal_user_id. Proxy admin only; other callers are scoped to their own user_id.
View spend for a specific internal_user_id. Proxy admin only; other callers are scoped to their own user_id.
Response
Successful Response
object[] required