Problem
There is currently no Admin API endpoint that exposes behavioural metrics for new user accounts (accounts < 90 days old), such as:
- Messages sent per hour
- Number of distinct rooms messaged
- DM initiation rate
- URL density in messages
Proposed Solution
Add a new REST endpoint:
GET /api/v1/admin/users/behaviour-metrics?userId=xxx
Returning a structured JSON response with the above metrics for a given user, scoped to the last 7 / 30 / 90 days.
Why this matters
This endpoint would enable third-party Apps Engine apps and external moderation tools to build risk scoring systems on top of Rocket.Chat without needing direct database access.
— Saksham Jain (@jainsaksham2006), GSoC 2026 applicant for New Users Anti Spammer System