Full reference: the Developers page (https://jace.company/developers).
The scores scope
Ask for scope=profile scores when sending people to Sign in with Jace. Any app the person approves can read scores; only official apps (registered by the site owner, like Jace Games) can save them. Every endpoint takes Authorization: Bearer <access_token> and answers in JSON.
Read your player's scores
GET /api/oauth/scores?game=snake returns { "scores": [{ id, game, score, created_at }] }, newest first. Leave out game for every game. This includes the Snake and Memory Match scores from the old Jace site.
Leaderboards
GET /api/oauth/leaderboard?game=snake&order=desc&limit=50 returns { "scores": [{ user_id, username, picture, score, created_at }] }: each player's best score, with their current username and avatar. Banned accounts are left out. Use order=asc for games where lower is better; limit is 50 by default and at most 100. game is required.
Save scores (official apps)
POST /api/oauth/scores with either { "game": "snake", "score": 42 } or a batch { "scores": [{ "game", "score", "created_at", "external_id" }] } of up to 500. It returns { "imported": n, "skipped": n }.
game: lowercase letters, numbers, and dashes, up to 32 (^[a-z0-9-]{1,32}$). Any id works, so a new game needs no setup on Jace.score: a whole number, 0 or more.created_at (optional): when the score was set; can't be in the future.external_id (optional): your app's own id for the score. A score your app already sent with the same external_id is skipped, so you can safely retry or re-sync.Errors
401 invalid_token: missing, invalid, or expired token403 insufficient_scope: the token lacks scores, or a non-official app tried to save403 account_banned: the account is banned400 invalid_request: a bad request (the message says what's wrong)Sign in to reply.