API keys and the upload command

Upload and submit builds from your terminal or CI, without opening a browser.

What a key can do

A key acts as your developer account, with the same role you have on each game. It can:

It cannot change your account or business details, see earnings or payouts, delete games, make a new server secret, manage team roles, change ad units or products, or create other keys. Those calls answer 403 with api_key_not_allowed.

A key does not skip review. Every version is still reviewed by a person, and it goes live only once it is approved. See Publishing and review.

Create and revoke a key

Your business verification must be approved before you can create or use a key.

  1. Open Account and go to API keys.
  2. Type a name, for example the machine or CI service that will use it, and press Create key.
  3. Copy the key. It starts with gk_ and is shown only once. GOOF stores only a fingerprint of it and cannot show it again.

You can have up to 5 active keys. The list shows each key's name, its first characters, when it was created and when it was last used. Press Revoke to turn a key off at once. Anything still using it gets 401 with invalid_api_key.

A key can upload at most 60 versions a day (UTC). Past that, uploads answer 429 with rate_limited until the next day.

Keep it secret

The upload command

goof-dev is a single file that runs with Node.js. It is not on npm, so download it:

curl -fsSLO https://developer.goof.gg/cli/goof-dev.mjs
export GOOF_API_KEY=gk_your_key_here
node goof-dev.mjs whoami

It reads the key from GOOF_API_KEY and exits with code 0 when the command worked, and another code when it did not.

CommandWhat it does
node goof-dev.mjs whoamiShows the account the key belongs to.
node goof-dev.mjs gamesLists your games and their ids.
node goof-dev.mjs upload <gameId> <file.html|file.zip> [--notes 'text'] [--submit]Uploads a new version. --notes adds notes to it. --submit sends it for review right after the upload.
node goof-dev.mjs versions <gameId>Lists the versions of a game and their states.
node goof-dev.mjs submit <gameId> <version>Sends a version for review.
node goof-dev.mjs preview <gameId> <version>Prints a test link for a version. It works for 2 hours.

The file must follow the package rules: one HTML file up to 5 MB, or a zip up to 30 MB.

In CI

A GitHub Actions step that uploads dist/game.zip and sends it for review. Add the key as a repository secret named GOOF_API_KEY first.

- name: Upload to GOOF
  env:
    GOOF_API_KEY: ${{ secrets.GOOF_API_KEY }}
  run: |
    curl -fsSLO https://developer.goof.gg/cli/goof-dev.mjs
    node goof-dev.mjs upload d0123456789abcd dist/game.zip --notes "${{ github.sha }}" --submit

Plain HTTP

If you prefer not to use the tool, call the API directly. The base address is https://minigames.appversestudio.com. Send the key as Authorization: Bearer $GOOF_API_KEY. Answers are JSON. Errors come as { "error": "code" }.

CallWhat it does
GET /v1/dev/meYour account.
GET /v1/dev/appsYour games.
GET /v1/dev/apps/<id>/versionsThe versions of a game.
POST /v1/dev/apps/<id>/versions?notes=...Upload. The body is the raw file, with content-type: text/html or application/zip.
POST /v1/dev/apps/<id>/versions/<version>/submitSend a version for review.
GET /v1/dev/apps/<id>/versions/<version>/preview-tokenA test link that works for 2 hours.

Upload a zip:

curl -fsS -X POST "https://minigames.appversestudio.com/v1/dev/apps/d0123456789abcd/versions?notes=build%2042" \
  -H "Authorization: Bearer $GOOF_API_KEY" \
  -H "content-type: application/zip" \
  --data-binary @dist/game.zip

The answer holds the new version under version. Send it for review with its number:

curl -fsS -X POST "https://minigames.appversestudio.com/v1/dev/apps/d0123456789abcd/versions/3/submit" \
  -H "Authorization: Bearer $GOOF_API_KEY"

For a single HTML file, use content-type: text/html and --data-binary @index.html.