curl --request GET \
--url https://api.hyra.io/activity/{workspaceId}/user/{userId} \
--header 'Authorization: Bearer <token>'
{
"totals": {
"minutes": 123,
"messages": 123,
"period": "<string>"
},
"last_25": [
{
"_id": "<string>",
"start": "<string>",
"end": "<string>",
"ended": true,
"game": "<string>",
"friends": [
"<string>"
],
"consolidation_state": "<string>",
"error": "<string>",
"tracked_idle": 123,
"duration": 123,
"gifted_by": "<string>",
"messages_sent": 123,
"game_details": {
"id": "<string>",
"name": "<string>",
"thumbnail": "<string>",
"url": "<string>",
"dominant": "<string>",
"brightness": 123
},
"events": [
{
"event": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"data": {},
"_id": "<string>",
"user": "<string>"
}
],
"job_id": "<string>"
}
],
"week_starts_on": "<string>"
}
Get a user’s activity for this week, and the last 25 activities
curl --request GET \
--url https://api.hyra.io/activity/{workspaceId}/user/{userId} \
--header 'Authorization: Bearer <token>'
{
"totals": {
"minutes": 123,
"messages": 123,
"period": "<string>"
},
"last_25": [
{
"_id": "<string>",
"start": "<string>",
"end": "<string>",
"ended": true,
"game": "<string>",
"friends": [
"<string>"
],
"consolidation_state": "<string>",
"error": "<string>",
"tracked_idle": 123,
"duration": 123,
"gifted_by": "<string>",
"messages_sent": 123,
"game_details": {
"id": "<string>",
"name": "<string>",
"thumbnail": "<string>",
"url": "<string>",
"dominant": "<string>",
"brightness": 123
},
"events": [
{
"event": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"data": {},
"_id": "<string>",
"user": "<string>"
}
],
"job_id": "<string>"
}
],
"week_starts_on": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Include the game in the response
Default Response
The response is of type object
.