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
}
}
}
Get a workspace’s 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
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Default Response
The response is of type object
.