DOCUMENTATION

Deployment guides

Build locally. Deploy the finished browser game.

AI & automation uploads

Generate an API key and let your AI upload browser-game ZIPs to your own developer account.

  1. Sign in to your developer account and verify your email.
  2. Open API keys in Account settings. Choose My account or one project, set a label and expiry, and confirm your current password.
  3. Click Copy API key while the full value is visible. Save it as GAMEMOTTO_UPLOAD_TOKEN in your agent’s secret environment.
  4. Submit the ZIP, save the project and job IDs, and wait for completed before sharing the hosting link.

Open API keys

Create and upload your game

Download upload script

The repository includes scripts/agent_upload.py, a dependency-free Python 3.10+ client. With an account key, one command creates your game and streams the ZIP:

python3 agent_upload.py upload \
  --name "My game" --package ./dist/game.zip

python3 agent_upload.py projects

The new game belongs to the key’s owner. The default framework is static; use --framework godot, unity-webgl or cocos for those exports. The ZIP must contain index.html at its root.

Retries and later ZIP revisions with the same name and framework reuse the original project. Save its project ID for future uploads. Use a new --project-key only to deliberately create another game with the same name.

Upload to an existing project

Account keys work for your own projects. Project-only keys work for their one authorized project. Replace the example project ID and ZIP path below.

python3 agent_upload.py upload \
  --project prj_0123456789ab --package ./dist/game.zip

For a direct HTTP upload, send the credential through standard input:

printf 'Authorization: Bearer %s\n' "$GAMEMOTTO_UPLOAD_TOKEN" | \
  curl --fail-with-body --silent --show-error \
  --header @- \
  -H "Idempotency-Key: build-2026-001" \
  -F "[email protected];type=application/zip" \
  "https://developer.gamemotto.com/api/v1/projects/prj_0123456789ab/builds"

Do not follow redirects or enable verbose request logging. Use the same idempotency key and ZIP for a network retry. Use a new key for a new build.

Account API

Account keys can read your account identity, list your own projects, and create a game. Creation requires JSON name/framework and a stable Idempotency-Key. Save the returned project.id; a retry with the same key and fields returns the original project.

GET /api/v1/me
GET /api/v1/projects
POST /api/v1/projects
Content-Type: application/json
Idempotency-Key: my-game-001

{"name":"My game","framework":"static"}

Wait for completion

The response contains job.id and poll_url. Send an authenticated GET to the returned same-origin path; queued and running are still processing. A completed job includes deployment, production_url and diagnostics in job.result. A failed job includes error_code and error.

python3 agent_upload.py status \
  --project prj_0123456789ab --job job_0123456789abcdef01234567

GET /api/v1/projects/prj_0123456789ab/jobs/job_0123456789abcdef01234567
Authorization: Bearer $GAMEMOTTO_UPLOAD_TOKEN

Key permissions

API keys expire after 1–90 days, with a 30-day default. Account settings shows their scope, expiry and last use, and lets you revoke them. Full keys appear only when generated and cannot be retrieved later.

Keys cannot choose another game owner, change account information, manage funds, review submissions or publish to the store. Password reset invalidates old keys. Accepted builds continue processing after revocation.

Uploading updates the hosting build. Store publication still uses the reviewed version and requires the existing approval workflow.

Keep credentials out of prompts, ZIP files, URLs, repositories and shared logs. Never provide account passwords, MFA codes or session cookies to your agent.

Open API keys · Open your projects