GET
Admin analytics overview

Overview

The “front-page” tile of the admin dashboard. Returns live platform-wide counters computed against the current Mongo collections — total users, active listings, mutual matches, recently-active chats, and the monthly + annual recurring revenue in pence. Unlike the cohorts and locations surfaces, this endpoint does not read from the nightly analytics_daily rollup; it recomputes on demand so the dashboard reflects the current moment. To keep a burst of admin page-loads from hammering Mongo, the snapshot is cached for 60 seconds. A cache hit returns the cached object untouched; a miss recomputes, populates the cache, and returns the fresh snapshot. See Analytics and rollups for the full split between live + rollup paths.
Available to any admin role — SUPER, MODERATOR, and FINANCE all read this surface (mirrors the reports feed and audit-log read paths).

Authentication

Bearer <accessToken> with scope: 'admin' required (requireAdmin).

Path parameters

None.

Query parameters

None.

Request body

None.

Response — 200 OK

computedAt is the truthful “as of” — clients can check Date.now() - computedAt to know how stale the snapshot is. Worst case is 60 seconds.

MVP limitations

  • totalMatches counts mutual saves (savedByA && savedByB). Chat does not require a save — any engine match can open a conversation — so activeChats can exceed it.
  • mrr/arr assume the single GBP-monthly pricing tier. Mixed-tier or non-GBP pricing requires a per-row summation against app_config.pricing — out of scope for MVP.

Error responses

See also

curl

Postman

See docs/postman/swappr.postman_collection.json → Admin Analytics → Overview.