GET
/
activity
/
{workspaceId}
/
leaderboard
curl --request GET \
  --url https://api.hyra.io/activity/{workspaceId}/leaderboard \
  --header 'Authorization: Bearer <token>'
{
  "playtime": {
    "top_three": [
      {
        "_id": "<string>",
        "position": 123,
        "total": 123,
        "in_game": true
      }
    ],
    "you": {
      "_id": "<string>",
      "position": 123,
      "total": 123,
      "in_game": true
    }
  },
  "sessions": {
    "top_three": [
      {
        "_id": "<string>",
        "position": 123,
        "total": 123
      }
    ],
    "you": {
      "_id": "<string>",
      "position": 123,
      "total": 123
    }
  }
}

Authorizations

Authorization
string
headerrequired

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

Path Parameters

workspaceId
string
required

Response

200 - application/json
playtime
object
required
sessions
object
required