Get user stats (JWT)
GET/user/stats
Get some stats about this user
Request
Responses
- 200
- 400
OK
- application/json
- Schema
- Example (from schema)
Schema
total_time_tracked_s float
Total number of seconds tracked by this user across all devices
first_heartbeat date-timenullable
Timestamp of the first heartbeat registered, null if does not exist
num_events integer
Count of events registered for this user across all metrics
num_non_heartbeat_events integer
Count of events registered for this user across all metrics except heartbeat
{
"total_time_tracked_s": 0,
"first_heartbeat": "2024-12-03T11:32:11.804Z",
"num_events": 0,
"num_non_heartbeat_events": 0
}
Not OK
- application/json
- Schema
- Example (from schema)
Schema
message string
Error message
{
"message": "string"
}
Loading...