Skip to main content
GET

Get Trends

Returns daily aggregated data for task and mood trends, suitable for charting.
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 trend data. Options: 7d, 30d, 90d

Response

Daily task data points
Formatted date label (e.g., “Jan 15”)
Number of tasks created on this date
Number of tasks completed on this date
Daily mood data points
Formatted date label (e.g., “Jan 15”)
Average mood score for the day (1-5)
Number of mood entries for the day