GET /api/v1/stats
Time-window aggregates for errors, open groups, and affected users.
Headers
x-api-key: rs_your_project_keyQuery params
timeframe:1h,24h,7d,30d- Default:
24h
Response
{
"timeframe": "24h",
"total_errors": 120,
"by_level": {
"error": 95,
"warn": 20,
"info": 5
},
"open_groups": 18,
"affected_users": 42,
"top_errors": [
{
"id": "...",
"message": "...",
"count": 30,
"last_seen": "..."
}
]
}Use this endpoint for dashboards, bots, and usage reporting.