Get entries
GET/leaderboards/:leaderboard_slug/entries
Paginated leaderboard rankings with metadata. 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(optional, int, default100, range1..1000): page sizeoffset(optional, int, default0): pagination offsetexpand(optional): set toprofileto attach profile snippets
When league is omitted and leagues are enabled, each row includes a per-player league slug inferred from stat bands or AT_RESET assignment.
Response example (200 OK)
{
"pagination": {
"limit": 50,
"offset": 0,
"total": 237,
"has_more": true
},
"league": "gold",
"entries": [
{
"rank": 1,
"user_id": 101,
"stat_value": 9800.0,
"league": "gold",
"profile": null
}
]
}
cURL example
curl -X GET "http://localhost:8000/client/leaderboards/daily-elo/entries?league=gold&limit=50&expand=profile" \
-H "x-client-id: <your-client-id>" \
-H "x-client-secret: <your-client-secret>" \
-H "Authorization: Bearer <access-token>"