Skip to main content
What the server allows right now: the limits a deploy has to fit, what your account has left, and the oldest CLI the server accepts. The CLI fetches these before each deploy, so a changed limit needs no CLI release. Authentication covers each credential, and errors covers the JSON error body.

Read limits, account usage and CLI package metadata

GET https://opengame.io/api/v1/bootstrap Authentication: A creator token or a signed-in browser session. Requires a creator token or browser session. The CLI reads this once per command. A server without this route answers 404, and the CLI then reads GET /api/v1/limits instead.

Request

Response 200

Limits, usage for this account and the CLI package opengame upgrade installs, or null when none is set.

Errors

Read current limits and the minimum CLI version

GET https://opengame.io/api/v1/limits Authentication: A creator token or a signed-in browser session. The same body as bootstrap without package and capabilities. A CLI reads it only when the server has no bootstrap route. A CLI older than minimumCliVersion exits with code 6.

Request

cURL

Response 200

The bundle limits, the platform limits a deploy is held to, and this account’s usage.

Errors

Read the minimum CLI version

GET https://opengame.io/api/v1/cli Authentication: Optional: a creator token. The CLI calls this when it has no token. Anybody gets the API version and the oldest CLI the server accepts. package is set only for a request with an ogt_ token whose account may use the creator API, and only when the server has a CLI package set. Otherwise it is null, and a rejected token gets null instead of an error. opengame upgrade installs only an official npm release, and stops with upgrade_untrusted for anything else. In JSON or agent mode it installs nothing and returns the npm command to run.

Request

cURL

Response 200

The versions, and the package when the caller may see it.

Errors