Analytics
Get Analytics
Get comprehensive analytics data for the organization
GET
Get Analytics
Returns comprehensive analytics data including task metrics, mood metrics, team performance, and flag statistics.This endpoint is only accessible to users with
manager or admin roles.Request
Bearer token from authentication
Time range for analytics data. Options:
7d, 30d, 90dResponse
Task Metrics
Total tasks created in the time period
Total tasks completed in the time period
Percentage of tasks completed (0-100)
Average time to complete a task in hours
Number of tasks that became overdue in the period
Mood Metrics
Average mood score (1-5)
Total mood check-ins recorded
Mood trend:
up, down, or stableArray of
{ score: number, count: number } showing distributionTeam Metrics
Users who had activity in the time period
Total users in the organization
Top 3 users by completed tasks:
{ id, name, completedTasks }Flag Metrics
Total flags raised in the period
Breakdown by severity:
{ severity, count }Number of resolved flags
Number of pending flags