Skip to main content
A deploy uploads one build of your game. You declare the archive, upload the bytes to the address the server returns, and confirm the upload. The server then checks the archive, and when the checks pass it makes a release with a private preview. opengame deploy makes all of these calls, resumes an upload that stopped, and is how most people deploy. Authentication covers each credential, and errors covers the JSON error body.

Start a deploy

POST https://opengame.io/api/v1/deploys Authentication: A creator token or a signed-in browser session. Declares an archive by size, file count and SHA-256, creates the operation, and returns a presigned create-only upload. With multipart: true and an archive over 67108864 bytes, it returns multipart instead: send each part to a URL from POST /api/v1/operations/{id}/upload/parts, then confirm. Without it, an archive over 524288000 bytes is rejected as bundle_limit. Requires the deploy scope. Omit gameId to create a game. Limited to 30 deploys an hour per account and 30 per token, and to 5 per account in any 24 hours. Retrying with the same Idempotency-Key returns the same operation, so a timeout never makes a second game. A browser session must send Origin set to the OpenGame origin.

Parameters

Headers

string
required
Generate once per deploy, save it before sending, and reuse it on each retry. 1 to 128 characters. Matches ^[A-Za-z0-9._:-]+$. Example: cli-20261021-7c9e6679.

Body

Sent as application/json.
string (uuid)
The linked game, from .opengame/project.json. Omit for a new game. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.
integer
required
From 1 to 4,294,967,295. Example: 40363.
integer
required
From 1 to 25,000. Example: 2.
string
required
Matches ^[0-9a-f]{64}$. Example: b8d366f9c6b992934298623f0295a2e61b6ca91b7a25304a553695b9e98f0ef0.
object
required
opengame.json without build.command. Build commands stay on your machine. The packaging guide covers each field.
integer or null
The website revision this manifest was last synced from. At least 1.
string
default:"preserve"
One of preserve or local. preserve keeps newer website edits; local replaces them on purpose.
boolean
Only true. This client can send the archive in parts. Used for an archive over 67108864 bytes; a smaller one still gets one upload.
array of string
The manifest fields this deploy sent only as placeholders, which review fills in and you confirm once review has passed: any of title, description, genre and controls that opengame.json leaves to Auto (a tagline is never named here), or a title read from the folder. opengame deploy sends it. Name each field once. At most 4 items.
object
Where the files came from, when it was not your own disk: a public GitHub repository at one commit, with the branch or release and the folder. The server checks that the commit is that branch’s or release’s own before anything is stored. The GitHub tab on the deploy page sends it.

Request

Response 200

The operation, with an upload when bytes are still needed. upload is absent when uploaded is true, when the archive goes in parts (multipart instead), or when the operation has left uploading.

Errors

Start a deploy with a file manifest

POST https://opengame.io/api/v1/deploys/files Authentication: A creator token or a signed-in browser session. Requires the deploy scope and per-file processing on this server, which bootstrap reports as capabilities.incrementalUpload. While that is true, the CLI sends an ordinary build this way, unless the stored archive would be past platform.incrementalUpload.archiveBytesMax. Some servers do not offer it. When unavailable, returns 503 temporarily_unavailable with retry set to never before reading the body; use POST /api/v1/deploys with a ZIP. A browser request from another site gets 403 first. Reuse the same Idempotency-Key on each retry. Returns the first page of missing content hashes and create-only storage PUT URLs. Cached content is scoped to this account.

Parameters

Headers

string
required
Generate once per deploy and reuse on each retry. 1 to 128 characters. Matches ^[A-Za-z0-9._:-]+$. Example: cli-20261021-7c9e6679.

Body

Sent as application/json.
string (uuid)
Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.
integer
required
From 1 to 209,715,200 (200 MiB).
integer
required
From 1 to 25,000.
string
required
Matches ^[0-9a-f]{64}$.
object
required
opengame.json without build.command. Build commands stay on the creator’s machine. The packaging guide covers each field.
integer or null
string
default:"preserve"
One of preserve or local.
array of objects
required
1 to 25000 items.
object
Where the files came from, when it was not your own disk: a public GitHub repository at one commit, with the branch or release and the folder. The server checks that the commit is that branch’s or release’s own before anything is stored. The GitHub tab on the deploy page sends it.
array of string
The manifest fields this deploy sent only as placeholders, which review fills in and you confirm once review has passed: any of title, description, genre and controls that opengame.json leaves to Auto (a tagline is never named here), or a title read from the folder. opengame deploy sends it. Name each field once. At most 4 items.

Request

cURL

Response 200

The operation and first file page.

Errors

Read the next page of missing files

GET https://opengame.io/api/v1/operations/{id}/files Authentication: A creator token or a signed-in browser session. For a file deploy started with POST /api/v1/deploys/files. Requires the deploy scope for this operation. Each page covers at most 32 distinct content hashes. Send the returned nextCursor even when missing is empty; cached hashes also occupy page positions. A null nextCursor ends pagination. Reading a page signs fresh URLs for the missing files once their previous URLs have expired, and each signing spends one of 3 attempts for that file. No upload URLs are returned after the operation leaves uploading.

Parameters

Path

string (uuid)
required
Operation UUID. Example: d4a7c1e9-3b6f-4a28-9e05-7c2b8f1d6a39.

Query

integer
default:0
Use nextCursor from the previous file page. From 0 to 25,000.

Request

cURL

Response 200

Missing content and observed reuse counts.

Errors

Verify one uploaded file

POST https://opengame.io/api/v1/operations/{id}/files/{hash} Authentication: A creator token or a signed-in browser session. For a file deploy. Call after the storage PUT succeeds. Send no file bytes or JSON body here. The server reads the stored bytes and verifies their hash and size before marking the file verified. Requires the deploy scope.

Parameters

Path

string (uuid)
required
Operation UUID. Example: d4a7c1e9-3b6f-4a28-9e05-7c2b8f1d6a39.
string
required
SHA-256 from the file manifest. Matches ^[0-9a-f]{64}$. Example: bb3645559c296672f00b1612316401f3d6c23e3747e393fe36a92513646d3ab3.

Request

cURL

Response 200

Verified content. When the operation has already left uploading, the operation alone, with no file.

Errors

Send one large file in parts

POST https://opengame.io/api/v1/operations/{id}/files/{hash}/parts Authentication: A creator token or a signed-in browser session. For a file or large-asset deploy, and a file over platform.deploy.multipart.aboveBytes (67108864 bytes) that the deploy’s page lists as missing. Answers the file’s part plan, each part of platform.deploy.multipart.partBytes (16777216 bytes) but the last, with uploadedParts listing what storage already holds, and a signed PUT for each part number named, up to 64 a request. Send parts: [] to read the plan alone. Signing spends no upload attempt. Once each part has arrived, confirm the file as usual with POST /api/v1/operations/{id}/files/{hash} or .../files/verify, which joins the parts first; a confirmation that finds parts missing answers upload_missing, so send the rest and confirm again. uploaded: true means the parts are already joined. A browser session must send Origin set to the OpenGame origin.

Parameters

Path

string (uuid)
required
Operation UUID. Example: d4a7c1e9-3b6f-4a28-9e05-7c2b8f1d6a39.
string
required
SHA-256 from the file manifest. Matches ^[0-9a-f]{64}$. Example: c680d6d08ae42a6aeedecdec9b83edbb1666a900caf75e962e992aa48cb27328.

Body

Sent as application/json.
array of integer
required
0 to 64 items. No item twice.

Request

cURL

Response 200

The file’s part plan and one signed PUT per part named. When the operation has left uploading, the operation and an empty list.

Errors

Send small files together

POST https://opengame.io/api/v1/operations/{id}/files/pack Authentication: A creator token or a signed-in browser session. For a file or large-asset deploy whose bootstrap names filePacks. Sends up to 1024 of the deploy’s files of at most platform.incrementalUpload.packFileBytesMax (1048576) bytes each in one request of at most 4194304 bytes, with Content-Type: application/octet-stream. The body is a four-byte little-endian length, that many bytes of JSON {"files":[{"sha256":"…","byteSize":…}]} naming the files in order, then their bytes end to end. The server checks each file’s SHA-256 and size, stores it where the PUT would have, and records the pack verified; nothing else needs sending for those files. Files already verified are accepted and left out of the answer. If any file fails, nothing in the pack is stored. Safe to repeat. Larger files go up through POST /api/v1/operations/{id}/files/{hash}/parts. Requires the deploy scope.

Parameters

Path

string (uuid)
required
Operation UUID. Example: d4a7c1e9-3b6f-4a28-9e05-7c2b8f1d6a39.

Request

cURL

Response 200

The files this pack verified. When the operation has already left uploading, the operation and an empty list.

Errors

List each file the deploy still needs

POST https://opengame.io/api/v1/operations/{id}/files/plan Authentication: A creator token or a signed-in browser session. For a file deploy. Returns the SHA-256 and size of each manifest file not yet verified, in hash order, and the deploy’s total distinct file count. It signs no URLs and spends no upload attempts: read pages from GET /api/v1/operations/{id}/files for those. Send no body. Safe to repeat. Requires the deploy scope for this operation. A deploy holds at most 25000 files, or a large-asset plan’s own count.

Parameters

Path

string (uuid)
required
Operation UUID. Example: d4a7c1e9-3b6f-4a28-9e05-7c2b8f1d6a39.

Request

cURL

Response 200

Each hash still to upload and confirm. files is empty once all are verified.

Errors

Verify a page of uploaded files

POST https://opengame.io/api/v1/operations/{id}/files/verify Authentication: A creator token or a signed-in browser session. For a file or large-asset deploy. Call after the storage PUTs for a page succeed, naming up to 256 hashes from the manifest. A file sent in parts is joined first, and answers upload_missing until each part has arrived. The server checks each stored object’s size and SHA-256 checksum, or reads the bytes when storage has no checksum for it, and records the whole page at once. Hashes already verified are accepted and left out of the answer. If any file fails, none in the page is recorded. Safe to repeat. Requires the deploy scope.

Parameters

Path

string (uuid)
required
Operation UUID. Example: d4a7c1e9-3b6f-4a28-9e05-7c2b8f1d6a39.

Body

Sent as application/json.
array of string
required
SHA-256 hashes from the file manifest whose PUT has finished. 1 to 256 items.

Request

cURL

Response 200

The files this call verified. Empty when each hash was already verified, or when the operation has already left uploading.

Errors

Assemble the archive and queue checks

POST https://opengame.io/api/v1/operations/{id}/files/complete Authentication: A creator token or a signed-in browser session. For a file deploy. Call after each missing hash has been uploaded and confirmed. The server assembles the canonical STORE ZIP and checks the declared size and SHA-256, then uses the existing scan and review pipeline. Send no JSON body. Safe to repeat; a queued operation continues the checks. Requires the deploy scope.

Parameters

Path

string (uuid)
required
Operation UUID. Example: d4a7c1e9-3b6f-4a28-9e05-7c2b8f1d6a39.

Request

cURL

Response 200

The existing operation, including an assembly already in progress or completed.

Response 202

Archive assembled and queued for checks.

Errors

Start a Unity deploy with large data assets

POST https://opengame.io/api/v1/deploys/unity-assets Authentication: A creator token or a signed-in browser session. Requires per-file processing on the server, which not each server offers. When unavailable, returns 503 temporarily_unavailable with retry set to later after sign-in and body checks. A Unity build within the archive limit can also use POST /api/v1/deploys. opengame deploy --unity-assets <plan.json> sends this request. The body is the file deploy’s body for the capped boot archive, with delivery and a separate sorted plan of Unity data assets, each with path, sha256 and byteSize. The plan is frozen when the deploy begins. Requires the deploy scope. Reuse the same Idempotency-Key after a timeout. Returns the first page of missing content, boot files and assets together, with create-only storage PUT URLs.

Parameters

Headers

string
required
Generate once per deploy and reuse on each retry. 1 to 128 characters. Matches ^[A-Za-z0-9._:-]+$. Example: cli-20261021-7c9e6679.

Body

Sent as application/json.
string (uuid)
Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.
integer
required
Bytes in the boot archive’s canonical STORE ZIP, which leaves the planned assets out. From 1 to 209,715,200 (200 MiB).
integer
required
Files in the boot archive. From 1 to 25,000.
string
required
SHA-256 of the boot archive. Matches ^[0-9a-f]{64}$.
object
required
opengame.json without build.command. Build commands stay on the creator’s machine. The packaging guide covers each field.
integer or null
string
default:"preserve"
One of preserve or local.
array of objects
required
The boot archive’s sorted file manifest. Planned assets are not listed here, and no path may appear in both lists. 1 to 25000 items.
object
Where the files came from, when it was not your own disk: a public GitHub repository at one commit, with the branch or release and the folder. The server checks that the commit is that branch’s or release’s own before anything is stored. The GitHub tab on the deploy page sends it.
array of string
The manifest fields this deploy sent only as placeholders, which review fills in and you confirm once review has passed: any of title, description, genre and controls that opengame.json leaves to Auto (a tagline is never named here), or a title read from the folder. opengame deploy sends it. Name each field once. At most 4 items.
string
required
Always unity-assets-v1. Always unity-assets-v1. Marks the body as a Unity large-asset deploy.
array of objects
required
The Unity data files that travel outside the boot archive, sorted by the UTF-8 bytes of their paths. At most 1 GiB (1073741824 bytes) together. The plan is frozen when the deploy begins, so a changed file needs a new deploy. 1 to 512 items.

Request

cURL

Response 200

The operation and first page of missing content, boot files and assets together.

Errors

Start a deploy with large external assets, for any plan kind

POST https://opengame.io/api/v1/deploys/external-assets Authentication: A creator token or a signed-in browser session. The same request and response as /api/v1/deploys/unity-assets, with delivery naming the plan kind: unity-assets-v1, kaigen-assets-v1 or large-game-v1. large-game-v1 is open to any active account. kaigen-assets-v1 is open to any active account too, and asks no statement. large-game-v1 supports large exports, including decompilations, mods and recompilations. It accepts any detected engine except Kaigen, or an unrecognized engine, and requires no publication statement. Assets can leave the boot archive except file types a browser runs or renders as a document (HTML, JavaScript, CSS, XML, SVG, wasm, web manifests, SWF and PDF, and their compressed forms). It holds up to 32768 assets, 1 GiB a file and 12 GiB in all; the boot archive keeps the ordinary limits. opengame deploy --external-assets auto, or a plan file containing {"delivery":"large-game-v1","assets":"auto"} chooses the files itself. A plan that large is a JSON body past platform.incrementalUpload.bodyBytesMax, so this route also takes Content-Encoding: gzip, held to that many bytes as sent and to platform.incrementalUpload.assetPlanBodyBytesMax (8388608) once decoded. Engine detection after the scan selects the plan’s rules; account access is checked separately.

Parameters

Headers

string
required
Generate once per deploy and reuse on each retry. 1 to 128 characters. Matches ^[A-Za-z0-9._:-]+$. Example: cli-20261021-7c9e6679.

Body

Sent as application/json. Type: object.

Request

cURL

Response 200

The operation and first page of missing content, boot files and assets together.

Errors

Read the next page of missing large assets

GET https://opengame.io/api/v1/operations/{id}/assets Authentication: A creator token or a signed-in browser session. For a large-asset deploy of any supported plan kind. Requires the deploy scope for this operation. Send nextCursor even when missing is empty; cached content also occupies page positions. A null nextCursor ends pagination. Reading a page signs fresh URLs for missing files whose URLs have expired, and each signing spends one of 3 attempts for that file.

Parameters

Path

string (uuid)
required
Operation UUID. Example: d4a7c1e9-3b6f-4a28-9e05-7c2b8f1d6a39.

Query

integer
default:0
Use nextCursor from the previous page. From 0 to 25,000.

Request

cURL

Response 200

Missing content and upload URLs.

Errors

Verify one uploaded large asset

POST https://opengame.io/api/v1/operations/{id}/assets/{hash} Authentication: A creator token or a signed-in browser session. For a large-asset deploy of any supported plan kind. Call after the storage PUT succeeds. Send no body. The server reads the stored bytes and checks their hash and size, as for a file deploy. While asset processing is off, even an operation that has left uploading answers 503 here.

Parameters

Path

string (uuid)
required
Operation UUID. Example: d4a7c1e9-3b6f-4a28-9e05-7c2b8f1d6a39.
string
required
SHA-256 from the plan. Matches ^[0-9a-f]{64}$. Example: c680d6d08ae42a6aeedecdec9b83edbb1666a900caf75e962e992aa48cb27328.

Request

cURL

Response 200

Verified content. When the operation has already left uploading, the operation alone, with no file.

Errors

Assemble the boot archive and queue checks

POST https://opengame.io/api/v1/operations/{id}/assets/complete Authentication: A creator token or a signed-in browser session. For a large-asset deploy of any supported plan kind. Call after each missing boot file and asset is uploaded and verified. Assembles the boot archive with the plan and uses the existing scan and review pipeline. Send no body. Safe to repeat.

Parameters

Path

string (uuid)
required
Operation UUID. Example: d4a7c1e9-3b6f-4a28-9e05-7c2b8f1d6a39.

Request

cURL

Response 200

The existing operation.

Response 202

Assembled and queued for checks.

Errors

Follow a deploy

GET https://opengame.io/api/v1/operations/{id} Authentication: A creator token or a signed-in browser session. Without query parameters this returns immediately. Each answer includes waitCursor; reconnect with after and waitMs to wait for a change for at most 20000 ms. The wait ends at once unless the state is queued or checking and the cursor still matches, and when nothing changes you get 200 with the same waitCursor. The server re-reads each 2000 ms and authenticates each read, so a token spends the request allowance once per read; a cursor grants no access. Older servers omit waitCursor; poll them each 2 seconds. Needs the deploy or read scope for the operation’s game. ready means the release passed each check a private preview needs.

Parameters

Path

string (uuid)
required
Operation UUID. Example: d4a7c1e9-3b6f-4a28-9e05-7c2b8f1d6a39.

Query

string
The last waitCursor; requires waitMs. Matches ^[0-9a-f]{64}$.
integer
Wait budget in milliseconds; requires after. Values above 20000 are clamped to it. At least 0.

Request

Response 200

The operation.

Errors

Sign URLs for archive parts

POST https://opengame.io/api/v1/operations/{id}/upload/parts Authentication: A creator token or a signed-in browser session. For a deploy whose create answered multipart. Signs a PUT for each part number named, up to 64 per request, each for that part’s exact length. Signing spends no upload attempt: a part number holds one part however often it is sent. An operation that has left uploading answers an empty list. A browser session must send Origin set to the OpenGame origin.

Parameters

Path

string (uuid)
required
Operation UUID. Example: d4a7c1e9-3b6f-4a28-9e05-7c2b8f1d6a39.

Body

Sent as application/json.
array of integer
required
1 to 64 items. No item twice.

Request

cURL

Response 200

One signed PUT per part named.

Errors

Get a fresh upload URL

POST https://opengame.io/api/v1/operations/{id}/upload Authentication: A creator token or a signed-in browser session. Signs a fresh PUT for an interrupted upload. The first URL from POST /api/v1/deploys counts as one of 3 attempts. A call while the previous URL is still valid re-signs without spending another. When the bytes already arrived, the answer is uploaded: true with no new URL, and an operation that has left uploading comes back alone. For an archive sent in parts it answers multipart again, with uploadedParts listing what storage already holds, so a resumed upload sends only the rest.

Parameters

Path

string (uuid)
required
Operation UUID. Example: d4a7c1e9-3b6f-4a28-9e05-7c2b8f1d6a39.

Request

cURL

Response 200

A new upload, the part plan, or uploaded: true.

Errors

Confirm the upload and queue checks

PUT https://opengame.io/api/v1/operations/{id}/upload Authentication: A creator token or a signed-in browser session. Call after the PUT succeeds, or after each part has. For parts, the server lists what storage holds, refuses with upload_missing while any part is absent or the wrong size, and joins them. The server reads the object’s real size before queuing the scan. Answers 202 when it queues checks, and 200 with the current operation when it is no longer uploading, so it is safe to repeat.

Parameters

Path

string (uuid)
required
Operation UUID. Example: d4a7c1e9-3b6f-4a28-9e05-7c2b8f1d6a39.

Request

cURL

Response 200

Already confirmed.

Response 202

Queued for checks.

Errors