Skip to main content
You declare achievements in opengame.json, and a running game unlocks them for the player. An unlock is the game’s claim: OpenGame stores it for the player and does not verify it. Games call these routes through the SDK. Authentication covers each credential, and errors covers the JSON error body.

List the player’s achievements in this game

GET https://api.opengame.gg/v1/achievements Authentication: A game session token. Each active achievement the game declared, and whether this player has unlocked it. Reading also counts this player as seen in the game, which is what rarity is measured against. Only for a published, live game: unavailable in a private preview or a review build. Rate limited per session, player and address.

Request

cURL

Response 200

One entry per achievement, by ID.

Errors

Unlock an achievement

POST https://api.opengame.gg/v1/achievements Authentication: A game session token. Who and which game come from the session token. Unlocking twice is harmless: the first unlock is kept and firstUnlock names whether this call made it. The unlock is the game’s claim. Not offered in a private preview or a review build.

Body

Sent as application/json.
string
required
An active achievement ID the game declared. At most 48 characters. Matches ^[a-z0-9][a-z0-9_-]*$. Example: first_win.

Request

cURL

Response 200

Unlocked.

Errors