Leaderboards
Join a leaderboard
POST
/v1/leaderboards/{leaderboardKey}/players/{playerId}Puts the player forward for a board that asks them to. Only a board with
requiresOptIn takes this; on any other it is a 400, because every
player is already scored.
Joining does not put the player on the board. They appear with their first score. Joining twice is the same as joining once, and says so.
Only what the player does from this moment counts. An event whose time is earlier than the join does not, even when it is sent after.
A board that does not exist, is switched off, or is not this player's, is a 404 in every case.
Authorization
ApiKey AuthorizationBearer <token>
Paste a project API key (no 'Bearer ' prefix). Create one in the dashboard under API keys.
In: header
Path Parameters
leaderboardKey*string
playerId*string
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/leaderboards/string/players/string"{ "leaderboardKey": "string", "wasAlreadyRegistered": true, "registeredPlayers": 0}