GET
/
activity
/
{workspaceId}
/
user
/
{userId}
curl --request GET \
  --url https://api.hyra.io/activity/{workspaceId}/user/{userId} \
  --header 'Authorization: Bearer <token>'
{
  "last_25": [
    {
      "_id": "<string>",
      "consolidation_state": "<string>",
      "duration": 123,
      "end": "<string>",
      "ended": true,
      "error": "<string>",
      "friends": [
        "<string>"
      ],
      "game": "<string>",
      "game_details": {
        "brightness": 123,
        "dominant": "<string>",
        "id": "<string>",
        "name": "<string>",
        "thumbnail": "<string>",
        "url": "<string>"
      },
      "gifted_by": "<string>",
      "idle_time": 123,
      "messages_sent": 123,
      "start": "<string>",
      "tracked_idle": 123
    }
  ],
  "totals": {
    "messages": 123,
    "minutes": 123,
    "period": "<string>"
  },
  "week_starts_on": "<string>"
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

userId
string
required

The user's ID/@me

workspaceId
string
required

Query Parameters

withGame
boolean

Include the game in the response

Response

200 - application/json
last_25
object[]
required
totals
object
required
week_starts_on
string
required