Get user stats
GET/:customer_id/users/:uid/stats
Get stats for a user
Request
Path Parameters
Id of the tenant
Id of the user
Responses
- 200
- 400
Successful response
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
Id of the user.
Optional alias of the user.
Optional external id of the user.
UTC offset of the user in minutes.
Local time of the first event sent to insights for this user.
Time of the first event sent to insights for this user.
Local time of the last event sent to insights for this user.
Time of the last event sent to insights for this user.
Time of the last sync.
Amount of seconds tracked in the lifetime of this user.
num_events objectrequired
Number of events tracked for this user.
periods object[]required
List of periods for this user.
Name of the active period.
Id of the group.
Local start time of the active period.
Local end time of the active period.
Start time of the active period.
End time of the active period.
List of tags attached to the active period.
Monitored time in period.
Whether the period is completed.
{
"uid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"alias": "string",
"external_id": "string",
"utc_offset": 0,
"first_active_local_time": "2024-12-03T11:32:12.418Z",
"first_active_utc": "2024-12-03T11:32:12.418Z",
"last_active_local_time": "2024-12-03T11:32:12.418Z",
"last_active_utc": "2024-12-03T11:32:12.418Z",
"last_sync_time_utc": "2024-12-03T11:32:12.418Z",
"total_time_tracked_s": 0,
"num_events": {},
"periods": [
{
"name": "string",
"group_id": "string",
"start_time_local": "2024-12-03T11:32:12.418Z",
"end_time_local": "2024-12-03T11:32:12.418Z",
"start_time_utc": "2024-12-03T11:32:12.418Z",
"end_time_utc": "2024-12-03T11:32:12.418Z",
"tags": [
"string"
],
"time_tracked_s": 0,
"is_completed": true
}
]
}
Validation error
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "string",
"errors": [
null
]
}