?Publish

Docs

REFERENCE

APIs and error codes

For calling the APIs yourself without a Skill. Leaderboards and cloud saves use separate tokens; never mix them.

Common leaderboard endpoints
WhenEndpointKey detail
Read settingsGET /api/v1/games/{gameId}/leaderboardsEnabled boards
Round startPOST /api/v1/leaderboards/{boardId}/runsPlayer token + new request key
Final resultPOST /api/v1/runs/{runId}/score{"score":12800}
StandingsGET /api/v1/leaderboards/{boardId}/entrieslimit and cursor pagination
My rankGET /api/v1/leaderboards/{boardId}/me?around=2Personal result and neighbors
Common save endpoints
ActionEndpoint or methodResult or requirement
InitializeAIWanna.saves.initialize(options)Wait for restoration before play
CheckpointAIWanna.saves.save()Complete state snapshot
Read cloud saveGET /api/v1/games/{gameId}/saves/mainsave + revision
Write cloud savePUT /api/v1/games/{gameId}/saves/mainbaseRevision + Idempotency-Key
Leaderboard error codes
StatusCodeWhat to do
400INVALID_INPUT / INVALID_CURSORCheck the fields, or read again from the first page
401SESSION_EXPIREDReconnect through the platform player
403FORBIDDENNo permission, wrong game or origin, or you are not the creator
404NOT_FOUND / BOARD_UNAVAILABLE / RUN_NOT_FOUNDCheck the IDs and that the board is enabled
409ALREADY_SUBMITTED / BOARD_KEY_EXISTSA settled run cannot change; board keys must be unique
410RUN_EXPIREDPast the two-hour limit for a run
422INVALID_SCORE / BOARD_LIMITScore out of range or played too briefly; or already 10 boards
429RATE_LIMITEDWait for Retry-After (60 s) and try again
503SERVICE_UNAVAILABLERetry later; the game keeps going
Common cloud-save errors
StatusErrorWhat to do
401Token expiredRefresh the save token and retry the same request
409Revision conflictBoth devices changed it: keep both and let the player choose
409IDENTITY_CHANGEDThe account changed: cancel, read again and confirm
429Too many requestsWait for Retry-After
—Network failureNot an empty save: queue it locally and never overwrite

Stuck? Send us the error and your prompt here.