Get aggregated activity statistics for the authenticated userReturns activity stats including:
Total requests, tokens, and spend
Data aggregated by date (daily_stats)
Breakdown by model
Breakdown by provider
Args: from_date: Start date in YYYY-MM-DD format (optional) to_date: End date in YYYY-MM-DD format (optional) days: Number of days to look back (alternative to from/to, default 30) current_user: Authenticated userReturns: Activity statisticsExample response: { "total_requests": 150, "total_tokens": 45000, "total_spend": 2.35, "daily_stats": [ { "date": "2025-01-01", "spend": 0.15, "tokens": 3000, "requests": 10 }, ... ] }
Request
Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Query Params
Responses
🟢200OK
application/json
Successful Response
Body
🟠422Unprocessable Entity
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET '/user/activity/stats?days&from&to' \
--header'Authorization: Bearer <token>'