Users
Get User Activity
API Documentation
Activity
- In-Game Tracking
- Users
- Sessions
- GETRetrieve Leaderboard
Order Logging
Staff
Workspace
- GETRetrieve a Workspace
- POSTUpdate a Workspace
- GETList Games
- POSTCreate Game
- DELDelete a Game
- GETList Roles
- POSTCreate a Role
- PUTUpdate Role
- DELDelete a Role
- GETList logbook templates
- GETRetrieve Logbook Template
- POSTCreate a Logbook Template
- PATCHUpdate a Logbook Template
- DELDelete a Logbook Template
- GETRetrieve GApps Config
- POSTSet GApps Service Account
- PATCHUpdate GApps Config
- DELDelete GApps Config
- GETGet Trello Config
- GETGet Trello boards
- POSTSet Trello board
- POSTSet Trello format
- DELDisconnect Trello board
- DELDelete Trello Config
- GETRetrieve Schedules
- POSTCreate a Schedule
- POSTUpdate a Schedule
Trello Integration
Bans (Invite Only)
Connections
Users
Get User Activity
Get a user’s activity for this week, and the last 25 activities
GET
/
activity
/
{workspaceId}
/
user
/
{userId}
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>",
"idle_time": 123,
"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
}
}
],
"week_starts_on": "<string>"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
Include the game in the response
Response
200 - application/json
Default Response
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>",
"idle_time": 123,
"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
}
}
],
"week_starts_on": "<string>"
}