Get Users With Stats
GET/api/v1/admin/users/stats
Get users with API call counts for admin dashboard.
Returns aggregated API call counts per user within the specified date range. Health/admin/docs paths are already excluded by APIUsageTrackingMiddleware.
Args: days: Number of days to look back (default 30, max 90) limit: Maximum results per page (default 50, max 100) offset: Number of results to skip for pagination sort: Sort by "api_calls" (descending) or "email" (ascending) user_ids: Optional comma-separated UUIDs to scope to specific users
Returns: 200: List of users with their API call counts 403: User is not an admin 500: Internal server error
Request
Responses
- 200
- 403
- 500
OK
Forbidden
Internal Server Error