Get users
GET/leaderboards/:leaderboard_slug/users
Paginated user list with ranked or assigned source. Requires x-client-id, x-client-secret, and Authorization bearer token. Caller must have client.leaderboard permission.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 422
Successful Response
Bad Request
Unauthorized
Forbidden
Not Found
Validation Error
Query parameters
league(optional, string): league slug filterlimit,offset: paginationsource(optional, defaultranked):rankedorassigned(AT_RESET boards only forassigned)expand(optional): set toprofileto attach profile snippets
source=assigned returns 400 on non-AT_RESET boards. Users without a stat may have rank: null and stat_value: null.
Response example (200 OK)
{
"pagination": {
"limit": 100,
"offset": 0,
"total": 37,
"has_more": false
},
"league": "silver",
"users": [
{
"rank": 1,
"user_id": 10,
"stat_value": 1500.0,
"league": "silver",
"profile": {
"nickname": "Ace",
"avatar_url": null
}
}
]
}
cURL example (assigned cohort with profile)
curl -X GET "http://localhost:8000/client/leaderboards/daily-elo/users?source=assigned&league=silver&expand=profile" \
-H "x-client-id: <your-client-id>" \
-H "x-client-secret: <your-client-secret>" \
-H "Authorization: Bearer <access-token>"