Skip to main content
A game is everything you deploy under one title: releases, website metadata, a cover, a private preview and settings. These routes read the games on your account and change the settings kept outside a build, such as achievements and the sites allowed to embed the game. Authentication covers each credential, and errors covers the JSON error body.

List your games

GET https://opengame.io/api/v1/games Authentication: A creator token or a signed-in browser session. 12 games a page, each with the latest deploy. Requires the read or deploy scope. A game-pinned token sees only the game.

Parameters

Query

string (uuid)
nextCursor from the previous page. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Request

Response 200

A page of games.

Errors

Read one of your games

GET https://opengame.io/api/v1/games/{id} Authentication: A creator token or a signed-in browser session. Returns one game you own, found by the UUID or the public ID, with the latest deploy and publication. Requires the read or deploy scope. With a browser session or the read or submit scope, submission is the newest standing review submission, or null when there is none or the game was removed. It is omitted for other tokens and when the submission could not be read. A game-pinned token can read only the game.

Parameters

Path

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Request

cURL

Response 200

The game.

Errors

List a game’s deployments

GET https://opengame.io/api/v1/games/{id}/deployments Authentication: A creator token or a signed-in browser session. Each deploy of one game you own, newest first, at most thirty: the state and the label the website shows, when it started and ended, the archive’s size and file count, the name of the token that started it, the leading finding’s sentence and fix for one that did not end ready, the page, and the preview once it is ready. What opengame deployments prints. Requires the read or deploy scope. A game-pinned token can read only the game.

Parameters

Path

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Request

Response 200

The deployments.

Errors

List a game’s releases

GET https://opengame.io/api/v1/games/{id}/releases Authentication: A creator token or a signed-in browser session. Each release of one game you own, newest first, as the Releases tab on the page lists them: which one is live, which were live before, which are drafts, in review or cleaned up, and rollback on each one the page offers to make live again. What opengame releases prints. rollbackBlocked names why none can be made live right now, when a publication is on the way. Requires the read or deploy scope. A game-pinned token can read only the game.

Parameters

Path

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Request

Response 200

The releases.

Errors

Make an earlier release live again

POST https://opengame.io/api/v1/games/{id}/releases/{releaseId}/rollback Authentication: A creator token or a signed-in browser session. Make a release that was live before the live one again, as Make live again does on the game’s page, through the same check and the same audit. Players get it from their next load, and the release it replaces stays in the list to go back to. The game must be live, and the release must have been live and still have the files. Requires the submit scope on this game; the deploy scope makes private previews only, so it cannot change what players get. A banned account can still go back to a version the game served. What opengame rollback sends. No body. When the swap was made and writing the game’s address failed, the answer is 502 host_failed with the reason; send the same request again, and it writes only the address.

Parameters

Path

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.
string (uuid)
required
The release to make live again, from GET /api/v1/games/{id}/releases. Example: 19ea6dc1-36d4-483a-9503-552308c56871.

Request

Response 200

That release is live. swapped is false when it already was; the address is written again either way.

Errors

POST https://opengame.io/api/v1/games/{id}/unpublish Authentication: A creator token or a signed-in browser session. Take a live game off the gallery and stop serving it, as Unpublish does on Your games, through the same function: the game’s address answers 410 and tells browsers to drop what they cached, the cover and screenshots come off public storage, and each row and upload is kept. Reversible with POST /api/v1/games/{id}/restore. Nothing holds it: a report, a hold or a reviewer does not stop a creator taking their own game down. Requires the submit scope on this game; the deploy scope makes private previews only, so it cannot take a game down. A banned tester or staff member can still unpublish, as on the website; a banned creator is no longer a member. What opengame unpublish sends. No body.

Parameters

Path

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Request

Response 200

The game is off the gallery. artPending is true when some of the art may still be on public storage, which staff finish.

Errors

POST https://opengame.io/api/v1/games/{id}/restore Authentication: A creator token or a signed-in browser session. Put a game you unpublished back on the gallery, serving the version it was on, as Put it back does on Your games, through the same function and the same checks. Rejected for a game OpenGame took down, one under a legal hold or a copyright notice, one with a report nobody has answered, and one whose build has not come back clean from the scanner. On a game that is already listed and whose address a failed attempt left held, it writes only the address (repaired). Requires the submit scope on this game. What opengame restore sends. No body.

Parameters

Path

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Request

Response 200

The game is back on the gallery, or the address was written again (repaired).

Errors

Read the models a game names it was made with

GET https://opengame.io/api/v1/games/{id}/details Authentication: A creator token or a signed-in browser session. The models and tools the game declares, which the page lists under Made with, and OpenGame’s list to choose from. What opengame details prints, and the keys --models takes. Requires the read or deploy scope for this game.

Parameters

Path

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Request

cURL

Response 200

The game’s declared models and the list.

Errors

Change a game’s title, tagline, description, models or banner style

PATCH https://opengame.io/api/v1/games/{id}/details Authentication: A creator token or a signed-in browser session. Save a game’s title, tagline, description, the models it names it was made with, or the banner style on the website, as the Details tab on the page does, through the same functions: the same limits, the same account check, and on a published game an audit record with both sides. Send any of them; a field left out keeps what the game has. On a published game players see the change at once. A change to the words moves the game’s metadata revision, so the next opengame deploy from a folder with older words keeps the website’s and opengame pull brings them into opengame.json. models replaces the whole list, on the live version and on any update still in review, and an empty list clears it; a game whose jam entry stands keeps that jam’s minimum and a model from each sponsor track’s maker. Requires the submit scope on this game; the deploy scope cannot change what players read. What opengame details sends.

Parameters

Path

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Body

Sent as application/json.
string
The new title. Example: Tide runner.
string
The new tagline, the line under the title on a card. Example: Race the rain to the river..
string
The new description, the copy on the game’s page. Example: Guide a paper boat downstream before the storm breaks..
array of string
The models and tools the game was made with, as keys from GET on this path, replacing the list. Empty clears it. At most 64 items.
string
One of directed or classic. How OpenGame draws the game’s banner: directed, art directed in several passes from the frames and code, or classic, one picture made from the frames. On a published game a change redraws the banner in a few minutes (bannerRedrawing in the answer), and the current one stays until then; a game can be restyled 3 times a UTC day. Saved after the words and models.

Request

Response 200

Saved. The details the website now shows.

Errors

Delete a game for good

POST https://opengame.io/api/v1/games/{id}/delete Authentication: A creator token or a signed-in browser session. Delete a game you own for good, as Delete for good does on the page, through the same function and the same typed-title confirmation, which the server compares against the game’s own title (case and spacing forgiven). The game comes off the gallery, the address answers 410 and the cover and screenshots come off public storage. It cannot be put back. The build, archive and records are kept, so nothing a live or frozen version points at is removed. The standing jam entry is withdrawn first, as opengame jam withdraw does, which frees the place, and any review of it is closed, so a game in review is deleted in one request. Rejected while it is under a legal hold, or in a jam that has closed and is being scored. Only a browser session or the token opengame login makes can delete, with the submit permission; a token made in settings cannot, whatever the permissions, and neither can one pinned to a game. A banned tester or staff member can still delete, as on the website; a banned creator is no longer a member. What opengame delete sends.

Parameters

Path

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Body

Sent as application/json.
string
required
The game’s title, typed out. Example: Tide Runner.

Request

Response 200

The game is deleted. artPending is true when some of the art may still be on public storage, which staff finish.

Errors

Read the website’s metadata for a game

GET https://opengame.io/api/v1/games/{id}/metadata Authentication: A creator token or a signed-in browser session. What opengame pull writes into opengame.json. Website edits raise revision. Requires the read or deploy scope for this game.

Parameters

Path

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Request

cURL

Response 200

The current metadata head.

Errors

Open a private preview

POST https://opengame.io/api/v1/games/{id}/preview Authentication: A signed-in browser session. Browser session only: the private game page calls this, and a token is rejected with 403 forbidden. Mints an unguessable p- host that serves one exact release for up to 24 hours, and a preview session whose scores never show publicly. Only the creator’s own account can open the preview; an invitation does not grant another account access. A preview can use the game API’s scores, events and geo, and any other service refuses it with unavailable_in_preview.

Parameters

Path

string
required
Game UUID. A public ID answers 404 game_not_found. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Body

Sent as application/json.
string (uuid)
Omit for the newest ready release. Send {} for that; the body itself is required. Example: c6f19a03-5b8e-4d27-9e4a-2b70d1f8c345.

Request

cURL

Response 200

The grant.

Errors

Revoke a private preview

DELETE https://opengame.io/api/v1/games/{id}/preview Authentication: A signed-in browser session. Browser session only. Ends one private preview grant you issued. A token is rejected with 403 forbidden.

Parameters

Path

string
required
Game UUID. A public ID answers 404 game_not_found. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Body

Sent as application/json.
string
required
Matches ^p-[a-z2-7]{52}$. Example: p-lqqwusfrvghybzwjvbpwnk2bkqgz4epypzfm7kwnsante2ixvu2t.

Request

cURL

Response 200

Revoked, or the grant had already ended or was never yours. Either way it no longer serves.

Errors

List files a release’s previews asked for and did not have

GET https://opengame.io/api/v1/games/{id}/preview/misses Authentication: A creator token or a signed-in browser session. Each path the running preview asked for that the release does not contain, with the path it does contain when the two differ only in letter case. A case mismatch is the usual cause, because the machine the game was built on ignores case. Requires the read scope for this game.

Parameters

Path

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Query

string (uuid)
required
Example: c6f19a03-5b8e-4d27-9e4a-2b70d1f8c345.

Request

cURL

Response 200

The misses, most recent first.

Errors

Read daily plays and the game’s own events

GET https://opengame.io/api/v1/games/{id}/stats Authentication: A creator token or a signed-in browser session. The Stats report for one complete ISO week, which opengame stats reads, with the older plays rows beside it. Plays, players, playtime and returning players come from the platform’s own counter; events are the game’s claims. No figure describes under 5 players: such a day is absent and such a count is null. Requires the read scope; a game-pinned token reads only the game. Any active creator can call this.

Parameters

Path

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Query

string
default:"week"
Only week. Always week, one ISO week from Monday to Sunday in UTC. A week is readable 6 hours after it ends, and each read of it counts the same receipts. day, month and all are rejected as invalid_range, and the message names window=week and period.
string
Which ISO week, such as 2026-W43. Defaults to the newest complete week. At most 104 weeks back, and never a week starting before 2026-08-01. A week that starts more than 90 days ago has numbers only if it was read before then; otherwise they are null and freshness.unavailable names why. Example: 2026-W43.
array of string
Event names in order, repeated or comma separated. 2 to 10 items.

Request

Response 200

The report, and the daily rows under their older name.

Errors

Read the full Stats report for one game

GET https://opengame.io/api/v1/games/{id}/stats/report Authentication: A creator token or a signed-in browser session. What the Stats page draws for one ISO week: totals, a comparison with the week before, daily rows, breakdowns, the game’s own events, retention, survival, performance by build and coverage. Requires the read scope; a game-pinned token reads only the game. Any active creator can call this.

Parameters

Path

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Query

string
default:"week"
Only week. Always week, one ISO week from Monday to Sunday in UTC. A week is readable 6 hours after it ends, and each read of it counts the same receipts. day, month and all are rejected as invalid_range, and the message names window=week and period.
string
Which ISO week, such as 2026-W43. Defaults to the newest complete week. At most 104 weeks back, and never a week starting before 2026-08-01. A week that starts more than 90 days ago has numbers only if it was read before then; otherwise they are null and freshness.unavailable names why. Example: 2026-W43.
array of string
Event names in order, repeated or comma separated. 2 to 10 items.

Request

cURL

Response 200

The report.

Errors

Download the Stats report as CSV

GET https://opengame.io/api/v1/games/{id}/stats/export Authentication: A creator token or a signed-in browser session. The same report as /stats/report, one row per figure, with the week, timezone and days on each row. The file is named analytics-week-<period>.csv, such as analytics-week-2026-W43.csv. Withheld numbers are empty cells. Cells that a spreadsheet would run as a formula are prefixed with an apostrophe. Requires the read scope; a game-pinned token reads only the game.

Parameters

Path

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Query

string
default:"week"
Only week. Always week, one ISO week from Monday to Sunday in UTC. A week is readable 6 hours after it ends, and each read of it counts the same receipts. day, month and all are rejected as invalid_range, and the message names window=week and period.
string
Which ISO week, such as 2026-W43. Defaults to the newest complete week. At most 104 weeks back, and never a week starting before 2026-08-01. A week that starts more than 90 days ago has numbers only if it was read before then; otherwise they are null and freshness.unavailable names why. Example: 2026-W43.
array of string
Event names in order, repeated or comma separated. 2 to 10 items.

Request

Response 200

A CSV attachment, each cell quoted. The example is the first rows.

Headers

string
Names the CSV file to save it as.

Errors

Read discovery, source quality and diagnostics

GET https://opengame.io/api/v1/games/{id}/stats/insights Authentication: A creator token or a signed-in browser session. Requires the read scope; a game-pinned token reads only the game. The insights of the week’s report, as they were kept with it: the same numbers each later read of the week answers with, and none while the report’s own numbers are withheld. Needs retained event detail, which is kept 90 days, when the week is first read: otherwise the panels are empty and unavailable names why. Benchmarks against your other games need a browser session. Diagnostics show the build with the most plays and the largest duration group; drill, which chose another, is rejected as filters_removed.

Parameters

Path

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Query

string
default:"week"
Only week. Always week, one ISO week from Monday to Sunday in UTC. A week is readable 6 hours after it ends, and each read of it counts the same receipts. day, month and all are rejected as invalid_range, and the message names window=week and period.
string
Which ISO week, such as 2026-W43. Defaults to the newest complete week. At most 104 weeks back, and never a week starting before 2026-08-01. A week that starts more than 90 days ago has numbers only if it was read before then; otherwise they are null and freshness.unavailable names why. Example: 2026-W43.
array of string
Event names in order, repeated or comma separated. 2 to 10 items.

Request

cURL

Response 200

The insights.

Errors

List the achievements a game declares

GET https://opengame.io/api/v1/games/{id}/achievements Authentication: A creator token or a signed-in browser session. Requires the read scope for this game. Includes inactive ones, sorted by ID.

Parameters

Path

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Request

Response 200

Each definition, by ID.

Errors

Declare or change one achievement

PUT https://opengame.io/api/v1/games/{id}/achievements Authentication: A creator token or a signed-in browser session. Requires the deploy scope for this game, and the submit scope as well for anything but a deploy’s own save. A deploy’s own save is active and names a ready deploy whose opengame.json declared exactly this ID, title and description. Retiring one (active: false), renaming one, or any edit without operationId changes what players of the game see, which a deploy-only token cannot. Creates the achievement or replaces the title, description and active flag; an existing one keeps the created_at. A game can declare 100; one more is rejected as invalid_request. A deploy sync sends operationId. An older ready deploy is rejected as achievement_deploy_superseded, so it cannot replace a newer title, description or retired achievement. An explicit edit, such as retiring one, omits operationId; opengame achievements retire sends that. opengame deploy calls this for each achievement opengame.json declares, once the deploy is ready. Unlocks are the game’s claim.

Parameters

Path

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Body

Sent as application/json.
string
required
1 to 48 characters. Matches ^[a-z0-9][a-z0-9_-]*$. Example: first_win.
string
required
Leading and trailing spaces are removed before the length is checked. 1 to 120 characters. Example: First win.
string
default:""
Leading and trailing spaces are removed before the length is checked. At most 500 characters. Example: Finish any level with every marble..
boolean
default:"true"
An inactive achievement is hidden from players and cannot be unlocked.
string (uuid)
The ready deploy these declarations belong to. A newer ready deploy of the same game refuses this write. Example: d4a7c1e9-3b6f-4a28-9e05-7c2b8f1d6a39.

Request

Response 200

The saved definition.

Errors

Read where this game may be embedded

GET https://opengame.io/api/v1/games/{id}/embed Authentication: A creator token or a signed-in browser session. Requires the read scope. Any active creator can call this. Embedding is off until at least one origin is listed. Each listed origin gets the address and iframe code, and the addresses play only while the game has a live version.

Parameters

Path

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Request

cURL

Response 200

The embed settings.

Errors

Replace the embed origins

PUT https://opengame.io/api/v1/games/{id}/embed Authentication: A creator token or a signed-in browser session. Requires the deploy scope. A token also needs the read scope, because the answer is read back with it after the save. Send the whole list and the revision you read; if the settings changed since, nothing is saved and the answer is embed_conflict. At most 20 origins. Each one must be exactly what a browser reports as an origin: https://, a lowercase hostname, and no trailing slash, path, query, fragment, port (including :443) or credentials. The hostname needs at least two labels of a-z, 0-9 and -, ends in a letters-only top-level label, and is at most 120 characters. IP addresses, single-label names, wildcards, internationalized names in either form, any hostname that is or ends in localhost, local, internal, invalid or test, and opengame.gg and the subdomains are rejected. An empty list turns embedding off. The answer is the saved settings. When the edge has not confirmed them yet, synced is false and message names so: OpenGame delivers them within a few minutes, and until then a page may get either list. Nothing needs resending.

Parameters

Path

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Body

Sent as application/json.
integer
required
At least 0. Example: 1.
array of string
required
At most 20 items. No item twice.

Request

cURL

Response 200

The saved settings.

Errors

List this game’s experiments

GET https://opengame.io/api/v1/games/{id}/experiments Authentication: A creator token or a signed-in browser session. Requires the read scope. Any active creator can call this. Lists each experiment, newest first, with the outcome, and the versions that can take part in one, newest first. While experiment results are turned off, each experiment includes an unavailable outcome whose note names so, and nothing recorded is read.

Parameters

Path

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Request

cURL

Response 200

Experiments and eligible versions.

Errors

Create an experiment

POST https://opengame.io/api/v1/games/{id}/experiments Authentication: A creator token or a signed-in browser session. Requires the deploy scope, and the game must be published. Creates a draft that compares the live version with an approved candidate. A game can have one draft or running experiment at a time. Nothing is served differently until it is started.

Parameters

Path

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Body

Sent as application/json.
string
required
Leading and trailing spaces are removed before the length is checked. 1 to 120 characters. Example: Shorter first level.
string (uuid)
required
Example: 19ea6dc1-36d4-483a-9503-552308c56871.
integer
default:10
The share of new sessions given the candidate. From 1 to 50.

Request

cURL

Response 201

The draft.

Errors

Start, stop, promote or evaluate an experiment

POST https://opengame.io/api/v1/games/{id}/experiments/{experimentId}/{action} Authentication: A creator token or a signed-in browser session. Requires the deploy scope. Send the revision you last read. stop works on a draft or running experiment, start on a draft, promote on a running or stopped one, and evaluate in any state. start answers 503 experiments_unavailable and changes nothing unless experiment starts are turned on; where they are, start checks that both versions can be served before it changes anything. From the close of entries, start answers 403 entries_closed and changes nothing. start and promote also need the game still published on the experiment’s control version, and the candidate released. promote makes the candidate the live version. If promote answered 503, send it again with the same revision; a promoted experiment accepts it and returns the row. evaluate records an outcome and changes nothing that is served. While results are turned off it records nothing and answers an unavailable outcome.

Parameters

Path

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.
string (uuid)
required
Example: 5f0c2a7e-9b1d-4c3e-a8f2-6d4b1e7c9a30.
string
required
One of start, stop, promote or evaluate.

Body

Sent as application/json.
integer
required
At least 1. Example: 1.

Request

cURL

Response 200

The experiment after the change, with promotedVersionId after promote. For evaluate, the recorded outcome, or a newer one already saved.

Errors

Start a new game from a remixable one

POST https://opengame.io/api/v1/games/{id}/remix Authentication: A creator token or a signed-in browser session. Requires the deploy scope on an account-wide token or a browser session. The source game must be published with remixing turned on under a supported license. Creates a draft game of yours and deploys a copy of the source’s licensed version through the ordinary deploy, so the copy goes through each check a deploy does. Retrying with the same Idempotency-Key returns the same remix. If the deploy is rejected, your draft game already exists; send the same request with the same key to try the deploy again.

Parameters

Path

string
required
Source game UUID or public ID. Example: c2a8e4f1-6b3d-4e7a-9c5f-1d8b3a6e2f94.

Headers

string (uuid)
required
A UUID. Reuse it on each retry of this remix. Example: 9e2c5a7b-4d1f-4b38-a6e9-0c3d8f1b7a54.

Body

Sent as application/json.
string
required
The parser takes 1 character, but the copied manifest needs 3, so a shorter title makes the draft and then fails with release_unavailable. 3 to 40 characters. Example: Lantern Keeper remix.

Request

cURL

Response 200

The remix, whose deploy is already ready.

Response 202

The remix, whose deploy is still running or has failed. Read operation.state, and follow operation.statusUrl while it runs.

Errors

Let others remix this game

PUT https://opengame.io/api/v1/games/{id}/remix/license Authentication: A creator token or a signed-in browser session. Requires the deploy scope for this game. Names the live version others may copy and the license it is shared under: MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC, CC0-1.0, CC-BY-4.0. A game has one remix license; saving replaces it. The version you name stays the remix source after you publish a newer one, until you save the license again.

Parameters

Path

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Body

Sent as application/json.
string (uuid)
required
The game’s current live version. Example: 0d7e3b58-6a21-4f9c-b4e2-93c1a8f05d17.
string
required
One of MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC, CC0-1.0 or CC-BY-4.0.
boolean
required
Example: true.

Request

cURL

Response 200

The saved license.

Errors