Analytics API
Dashboard and space analytics endpoints.
Endpoints Overview
| Method | Endpoint | Description |
|---|---|---|
| GET | /analytics/spaces/{slug}/stats | Space statistics |
| GET | /analytics/spaces/{slug}/rating-distribution | Rating distribution |
Space Statistics
GET /analytics/spaces/{slug}/stats
Response
{
"product_count": 142,
"contract_count": 12,
"upcoming_meetings_count": 3,
"open_issues_count": 8,
"upcoming_meetings": [
{
"id": "...",
"name": "Weekly Data Review",
"scheduled_at": "2026-01-20T14:00:00Z"
}
],
"recent_issues": [
{
"id": "...",
"title": "Null rate increase",
"priority": "high"
}
],
"recent_products": [
{
"id": "...",
"name": "Customer Events",
"created_at": "2026-01-15T10:30:00Z"
}
]
}
Rating Distribution
GET /analytics/spaces/{slug}/rating-distribution
Returns distribution of product ratings in the space.
Response
{
"distribution": {
"1": 2,
"2": 5,
"3": 18,
"4": 45,
"5": 72
},
"average": 4.2,
"total_ratings": 142
}