Analytics
Export Analytics
Export analytics data as CSV or JSON file
GET
Export Analytics
Exports detailed analytics data as a downloadable CSV or JSON file.This endpoint is only accessible to users with
manager or admin roles.Request
Bearer token from authentication
Time range for export. Options:
7d, 30d, 90dExport format. Options:
csv, jsonResponse
CSV Format
Returns a CSV file with sections for:- Task Metrics: Date, Tasks Created, Tasks Completed, Overdue Tasks
- Mood Metrics: Date, Average Score, Responses
- Flag Metrics: Date, Total Flags, Low, Medium, High, Critical
JSON Format
Returns a JSON file with the following structure:The time range used for the export
ISO timestamp of when the export was generated
Daily task metrics:
{ date, created, completed, overdue }Daily mood metrics:
{ date, average, responses }Daily flag metrics:
{ date, total, low, medium, high, critical }