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
string
required
Bearer token from authentication
string
default:"30d"
Time range for analytics data. Options:
7d, 30d, 90dResponse
Task Metrics
number
Total tasks created in the time period
number
Total tasks completed in the time period
number
Percentage of tasks completed (0-100)
number
Average time to complete a task in hours
number
Number of tasks that became overdue in the period
Mood Metrics
number
Average mood score (1-5)
number
Total mood check-ins recorded
string
Mood trend:
up, down, or stablearray
Array of
{ score: number, count: number } showing distributionTeam Metrics
number
Users who had activity in the time period
number
Total users in the organization
array
Top 3 users by completed tasks:
{ id, name, completedTasks }Flag Metrics
number
Total flags raised in the period
array
Breakdown by severity:
{ severity, count }number
Number of resolved flags
number
Number of pending flags