Skip to content

[Feature] Expose new user behaviour metrics via Admin API for moderation tooling #40004

@jainsaksham2006

Description

@jainsaksham2006

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featurePull requests that introduces new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions