This endpoint retrieves aggregated usage statistics for specific users. Use this to analyze user behavior, track token consumption, and calculate costs per user.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/helicone/helicone/llms.txt
Use this file to discover all available pages before exploring further.
Use Cases
- Analyze individual user behavior
- Track token usage per user
- Calculate per-user costs
- Monitor user activity levels
- Generate user-specific usage reports
Request Body
Array of user IDs to query. If not provided, returns data for all users.
Response
Returns a Result object containing an array of user statistics.Array of user statistics objects
The user identifier
Total number of requests made by the user
Total prompt tokens consumed by the user
Total completion tokens generated for the user
Total cost in USD for the user’s requests
Error message if the request failed, null otherwise
Example Request
Example Response
Notes
- Results are limited to 100 users per request
- User IDs must match the values passed in the
Helicone-User-Idheader during request logging - Costs are calculated based on the model pricing at the time of the request
- If no timeFilter is provided, defaults to all time
