Skip to main content

GET /api/admin/dashboard/stats

Get overall platform statistics.

Response

{
  "success": true,
  "data": {
    "totalUsers": 1250,
    "totalThreads": 5432,
    "totalComparisons": 12345,
    "totalVotes": 8765,
    "activeModels": 15,
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

GET /api/admin/dashboard/recent-activity

Get recent platform activity.

Query parameters

ParameterTypeDefaultDescription
limitinteger10Number of recent items

Response

Returns a list of recent comparisons, votes, and user signups.

GET /api/admin/dashboard/model-performance

Get performance metrics for all AI models — win rates, response times, total comparisons.

GET /api/admin/dashboard/user-stats

Get user growth and engagement statistics.

GET /api/admin/dashboard/provider-stats

Get AI provider health statistics — total calls, failure rates, active keys per provider.