Leaderboards
List leaderboards, fetch entries, get the current user's rank.
Source: apps/api/src/routes/client/leaderboards.ts.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /client/leaderboards | All active leaderboard definitions (public columns). |
| GET | /client/leaderboards/:leaderboardId | Paginated ranked entries with user display info. |
| GET | /client/leaderboards/:leaderboardId/me | Current user's entry + rank. |
GET /client/leaderboards
Response 200
Try it:
GET
client auth/client/leaderboardscurl -X GET 'https://api.amba.dev/client/leaderboards'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl:
GET /client/leaderboards/:leaderboardId
Ordered by rank ASC NULLS LAST.
Query
| Param | Default |
|---|---|
limit | 50 |
offset | 0 |
Response 200
Try it:
GET
client auth/client/leaderboards/%7B%7BleaderboardId%7D%7Dcurl -X GET 'https://api.amba.dev/client/leaderboards/%7B%7BleaderboardId%7D%7D'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl:
GET /client/leaderboards/:leaderboardId/me
Returns { rank: null, score: 0 } if the user has no entry yet.
Response 200
Try it:
GET
client auth/client/leaderboards/%7B%7BleaderboardId%7D%7D/mecurl -X GET 'https://api.amba.dev/client/leaderboards/%7B%7BleaderboardId%7D%7D/me'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl: