Platform Analytics
Platform owner endpoints for accessing metrics and usage statistics across the entire platform.
Endpoints
| Method | Path | Description |
|---|---|---|
GET |
/api/platform/analytics/overview |
Platform overview metrics |
GET |
/api/platform/analytics/organization-status |
Org status breakdown |
GET |
/api/platform/analytics/growth-trends |
Growth trends over time |
GET |
/api/platform/analytics/login-activity |
Login activity trends |
GET |
/api/platform/analytics/top-organizations |
Most active organizations |
GET /api/platform/analytics/overview
Get high-level platform metrics.
Authorization: Platform Owner Only
Response (200 OK)
{
"total_organizations": 142,
"total_users": 150,
"total_end_users": 15420,
"total_services": 387,
"total_logins_24h": 1523,
"total_logins_30d": 45678
}
GET /api/platform/analytics/organization-status
Get organization count breakdown by status.
Response (200 OK)
{
"pending": 8,
"active": 125,
"suspended": 4,
"rejected": 5
}
GET /api/platform/analytics/growth-trends
Get platform growth trends over a date range.
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
start_date |
string |
Last 30 days | Start date (YYYY-MM-DD) |
end_date |
string |
Today | End date (YYYY-MM-DD) |
Response (200 OK)
[
{
"date": "2025-01-01",
"new_organizations": 3,
"new_users": 150
},
{
"date": "2025-01-02",
"new_organizations": 2,
"new_users": 145
}
]
GET /api/platform/analytics/login-activity
Get platform-wide login activity trends over a date range.
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
start_date |
string |
Last 30 days | Start date (YYYY-MM-DD) |
end_date |
string |
Today | End date (YYYY-MM-DD) |
Response (200 OK)
[
{
"date": "2025-01-01",
"count": 520
},
{
"date": "2025-01-02",
"count": 498
}
]
GET /api/platform/analytics/top-organizations
Get the most active organizations on the platform.
Response (200 OK)
[
{
"id": "org-uuid",
"name": "Acme Corporation",
"slug": "acme-corp",
"user_count": 150,
"service_count": 5,
"login_count_30d": 523
}
]