Budget & Spend Tracking
Internal User management
Get User Daily Activity
[BETA] This is a beta endpoint. It will change.
Meant to optimize querying spend data for analytics for a user.
Returns: (by date)
- spend
- prompt_tokens
- completion_tokens
- cache_read_input_tokens
- cache_creation_input_tokens
- total_tokens
- api_requests
- breakdown by model, api_key, provider
get/user/daily/activity
Request
- Base URL: https://api.sea-lion.ai (the document declares no server; this is the origin it was published from)
- URL: https://api.sea-lion.ai/user/daily/activity
- Auth: one of:
- API key in header x-litellm-api-key
- API key in header x-litellm-api-key
- API key in header x-litellm-api-key
- API key in header x-litellm-api-key
- API key in header x-litellm-api-key
- API key in header x-litellm-api-key
Query parameters
start_datestring nullable
Start date in YYYY-MM-DD format
end_datestring nullable
End date in YYYY-MM-DD format
modelstring nullable
Filter by specific model
api_keystring nullable
Filter by specific API key
user_idstring nullable
Filter by specific user ID. Admins can filter by any user or omit for global view. Non-admins must provide their own user_id.
pageinteger
Page number for pagination
page_sizeinteger
Items per page
timezoneinteger nullable
Timezone offset in minutes from UTC (e.g., 480 for PST). Matches JavaScript's Date.getTimezoneOffset() convention.
Response
Successful Response
Changes
No recorded changes to this operation across all 80 revisions of this API.