Leaderboards
List leaderboards, fetch entries, get the current user's rank.
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/v1/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/v1/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/entries on score boards
On a high_score board, /client/leaderboards/:leaderboardId/entries and /me take two more query parameters:
| Param | Default |
|---|---|
key | required on keyed boards |
period_start | current window |
period_start is any UTC date (YYYY-MM-DD) inside the window to read, so past windows stay readable. Entries carry rank, user_id, app_user_id, display_name, avatar_url, score and achieved_at; ties go to whoever reached the score first. The envelope adds key, period, period_start and me, the caller's own entry (null when they have no score in that window). See Score leaderboards.
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/v1/client/leaderboards/%7B%7BleaderboardId%7D%7D/me'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl: