This endpoint provides comprehensive user metrics including activity patterns, token usage, and cost analytics. Use advanced filtering to segment users and pagination to handle large result sets.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
- Generate detailed user analytics reports
- Identify most active users
- Track user engagement over time
- Calculate average requests per active day
- Monitor per-user costs and token consumption
Request Body
Filter criteria for users. Can be “all” to retrieve all users, or a filter tree structure to specify conditions.
Number of records to skip for pagination (0-based)
Maximum number of records to return. Cannot exceed 1000.
Time zone difference in minutes from UTC for time-based calculations
Sorting configuration for the results
Response
Returns a Result object containing user metrics data.User metrics response object
Array of user metrics objects
Internal user record ID
The user identifier
Number of days the user has been active
ISO 8601 timestamp of first activity
ISO 8601 timestamp of last activity
Total number of requests made by the user
Average number of requests per active day
Average total tokens (prompt + completion) per request
Total completion tokens generated
Total prompt tokens consumed
Total cost in USD
Total number of users matching the filter (for pagination)
Whether any users were found
Error message if the request failed, null otherwise
Example Request
Example Response
Error Response
Notes
- Maximum limit is 1000 users per request
- Use offset and limit for pagination through large result sets
- Active days are calculated based on days with at least one request
- Costs are calculated based on model pricing at the time of each request
