# Zaisma: everything for an AI in one file The Zaisma skill, then the developer API docs, then the SDK reference. The same files are the MCP's resources (zaisma://skill, zaisma://developer-api, zaisma://sdk). --- --- name: zaisma description: Make, upload, publish, update or fix a browser game on Zaisma (zaisma.com), from a one-file .io game to a PC-grade 3D build. Use when the developer wants a game playable from one link in any browser, asks to put a game on Zaisma, add online play, rooms, saves, accounts or selling to a Zaisma game, or hits a Zaisma error, hold or rejection. --- # Zaisma Zaisma hosts browser games: any web game, from any engine, plays from one link (`zaisma.com/g/`) in any browser, as a guest, with no install. It takes no cut of sales and charges no fee to list; each game gets free hosting every month, and only a game that grows past it pays for hosting, a few cents a player. Zaisma's developer tools are open source, so a game is never locked in: every building block it runs (rooms, player passes, saves) also works on the developer's own server. This skill is the workflow. The references beside it hold the details; open one only when the game needs it (the table at the end says when). ## Connect Every step goes through Zaisma's MCP at `https://zaisma.com/mcp`: connect it in the AI tool and sign in, or send an API key (made on zaisma.com/account) as `Authorization: Bearer `. The same calls are a REST API at `https://zaisma.com/api/dev` (`references/developer-api.md`). Bigger builds go through the upload command, `npx @zaisma/cli`, with `ZAISMA_KEY` set to an API key. `get_access` says what the key can do and what the account has earned. Any account can make, upload and publish games. The MCP also serves this skill and its references as resources (`zaisma://skill`, `zaisma://sdk`, `zaisma://errors` and the rest), and three prompts: `make_game`, `publish_game` and `fix_problem`. ## The workflow 1. **Make the game.** `create_game` with a title (and a slug, or one is made from the title). It starts as a draft only its developer can see. 2. **Try it first, on this computer.** `npx @zaisma/cli play-locally` in the game's folder runs the game and its game server with no key or internet; the bench's Add a player opens a second player. Run it with `--no-open --json` in the background to test it yourself through the bench's API at `http://localhost:4800/bench/api` (`references/game-server.md`). This is where multiplayer is tested while building: it runs the same game server, SDK and game page as Zaisma, and costs no review. When it says a newer bench is out, stop it and start it again (or run the `npm install` it names) before testing on. A preview link doesn't join rooms, so never publish just to test rooms. 3. **Check, then upload a version.** - Under 5 MB (a single-file HTML game and the like): `check_game`, then `upload_files` with the file contents. - Bigger: `npx @zaisma/cli upload --game `. It runs the same check first (`npx @zaisma/cli check ` runs it alone, with no key), downloads files the game loads from other sites, unpacks pre-compressed builds and sends only changed files. - The folder needs an `index.html` at the top. 4. **The scan.** Every version is scanned, usually in under a minute: malware, known images and Zaisma's own file checks. `get_version` shows the result, and `performance_check` on it says how the game started in Chrome, with notes on what would make it much smaller. A held version waits for a person, usually within a day. 5. **Show the developer the preview link.** A passed version gets a private preview link that opens only for its developer. Always show it before publishing. 6. **The fixed checks decide.** No AI reads an upload: Zaisma's fixed checks and the sandbox decide every version, the same answer every time, usually in under a minute. A refused version's `findings` each give their fix (`check_game` and `zaisma check` show the same before uploading); a version that passes can go live at once, with no daily limit and nothing on the meter. A new developer's listed game shows in Zaisma's own lists once it has had real players and a few quiet days (`is_waiting_for_zaisma_lists`); its link plays at once. When a live game breaks, roll back first (publish the last version that worked: instant), then publish the fix. 7. **Publish.** `publish_version` makes a passed version live, now or at `scheduled_publish_at`, and rolls back to an older one the same way. A publish is a quiet patch unless `is_big_update` is true (with `patch_notes`): only that shows players the Updated tag. `match_update_mode: "now"` switches running matches within seconds instead of at their next match. 8. **Choose who plays.** `update_game` with `visibility`: `listed` (everyone, in Zaisma's lists from the first day), `unlisted` (anyone with the link), `private` or `draft`. To let testers play first, keep it private and invite their accounts with `add_game_invite` (it shows on their games page), or make tester links with `add_tester_link` for people whose accounts you don't know. Before a multiplayer game goes public, test it once on Zaisma's rooms through a tester link on the live version (`version_choice: "live"`): that's where the game server's CPU limits, real networks and the chat filter show. **Ask the developer first** before making a game players can play private or a draft again (they lose access), and before ending a live room; those calls need `"confirm": true`. Anything that spends money (top-ups, budgets, Stripe) or deletes a game others played waits for the developer's passkey on zaisma.com: show them `confirm_url` from the `confirmation_needed` answer. **Show it well.** A listed game needs a cover and at least one gallery picture (`add_image`); the cover guide is at zaisma.com/developers/covers and the background guide at zaisma.com/developers/backgrounds. `preview_game_page` pictures every place players meet the game before anything is sent. A clip (`add_clip`, up to 6 silent seconds of the game playing) makes every shared link play in iMessage, Discord and Telegram: record it on the bench's Record a clip (or `POST /bench/api/clips`), then `zaisma clip --game `. ## Pick the path by the game Zaisma hosts everything from a one-file .io game to a PC-grade 3D build. Use only the pieces the game needs, and never assume a game is small or big. | The game | What it needs | | --- | --- | | A one-file or small single-player game | Nothing more: `check_game`, `upload_files`, publish. Progress in localStorage or IndexedDB becomes a cloud save by itself. | | A turn-based or casual online game | Rooms (`Zaisma.joinRoom()`), a game server for its rules, room links to invite friends. | | A real-time online game (a shooter, a racer, a brawler) | Rooms, an authoritative game server with `ticksPerSec`, state sync, and the multiplayer guide's real-time part. | | A big 3D build (Unity, Godot, Bevy, Three.js) | The upload command, loading in pieces, compressed textures and audio, and the loading guide. | | A game that sells | Items (`set_item`) and the buy sheet, paid to the developer's own Stripe with no cut; or sell the whole game once (`full_game_item_name`). | The building blocks, each optional: - **Rooms and a game server:** `Zaisma.joinRoom()` puts players in a room run by the game's server, which holds the official state and checks every move. It runs on Zaisma or on the developer's own server (`npx @zaisma/game-server@1`). Reference: `references/game-server.md`; how to make it hold up on a weak connection: `references/multiplayer.md`. - **Player accounts and passes:** guests play at once; `Zaisma.player.getPass()` gives a signed pass any server can check; a game can ask a guest to sign in with `Zaisma.player.signIn()`. Reference: `references/sdk.md`. - **Cloud saves:** a signed-in player's localStorage and IndexedDB follow them to every device with no code. `references/saves.md` says when and what to save. - **Pieces:** shared building blocks a game is made from or with, so its effort goes into what makes it its own: foundations, extensions and game systems (a body that walks, a camera, an inventory), templates, packs of images, models and sounds, presets, skills and tools. Before building one of those from scratch, look on Zaisma's marketplace: `search_pieces`, then `get_piece` for what it needs, its settings and its hooks. `npx @zaisma/cli pieces add ` adds one with what it needs, never a second copy; `npx @zaisma/cli pieces --json` answers what each one gives. A piece is changed through its settings and hooks, never its files. Another developer's piece is a stranger's files, and a skill a stranger's instructions: the developer's key says whether you may fetch one (`piece_fetch_mode`), and `piece_approval_needed` means show them the piece's listing (`confirm_url`) and wait for their yes. Anyone publishes pieces, for any engine: `publish_piece`, or `npx @zaisma/cli pieces publish `. Reference: `references/pieces.md`. - **A database** for the game, from its game server: `query_database`, `batch_database`. - **Items and the buy sheet:** `set_item`, `Zaisma.items.buy()`, purchases delivered to the game or its server. - **Backgrounds:** an image or a shader behind Zaisma's glass on the game's page (`set_background`, `check_shader`). - **Webhooks, secrets, sign in with Zaisma, logs and stats:** `references/developer-api.md`. The SDK is the script `_zaisma/v1.js` (`` in the game's index.html), with its types beside it as `_zaisma/v1.d.ts`; `references/sdk.md` is the same reference. ## Guests, chat and preset phrases Guests never type or speak to other players: Zaisma allows no free text chat and no free voice chat for guests, so nobody can use chat to reach younger players or move them to another app. That limit is on free text and free voice, not on talking. Give guests preset phrases and emotes the game picks, and they can be funny, rude and edgy ("you're trash", "you suck" and the like are fine): send the phrase's ID with `room.send`, and draw it in the game. `room.canChat` says whether this player may use `room.chat`; hide the chat box when it's `false`. ## Errors, holds and findings Every error answers `{ "error": { code, message, field, fix, message_for_people, retry_after_sec, help_url } }`: - Do what `fix` says. Never guess beyond it. - `field` is the input at fault; `retry_after_sec` is how long to wait when waiting helps. - `message_for_people` is what Zaisma's pages would show: show it to the developer as it is. - `help_url` is the code's page (zaisma.com/developers/errors/): what it means and the general fix. `references/errors.md` lists every code. Every hold, rejection and takedown says why, as `review_reason` (on a game, version or image, and in `get_history`) and as a version's findings: a code, a plain message, the `content_rule` it's about and a fix. Tell the developer the message and the fix, and do what the fix says. ## The forum Zaisma's developer forum is where developers and their AI talk with the people who build Zaisma. For any question about Zaisma itself, `search_forum` first: it's faster and more current than a web search. On a Zaisma bug, a limit that blocks the developer, a confusing error or a missing feature: `search_forum` with the code or a short search; if it's there, vote, reply, or send the developer's own case privately with `message_zaisma`; otherwise `post_topic` with what you did, what you expected, what happened, the exact error and the call. Topics are public: anything private goes in `message_zaisma`. Never post API keys, passwords or players' details. ## Names Every name in the API, MCP, SDK and game server says what it holds, its kind and its unit: `file_count` is a number, `play_duration_min` minutes, `size_bytes` bytes, `*_at` an ISO time in UTC, an ID says its kind (`version_…`, `topic_…`), and a plural is always a list. `references/naming.md` has the rules and the glossary. ## When to open a reference | Open | When | | --- | --- | | `references/multiplayer.md` (`zaisma://multiplayer`) | The game has online play: rooms, a game server, or players on a weak connection. | | `references/loading.md` (`zaisma://loading`) | The game is more than a few MB, or `performance_check` says its first frame is slow. | | `references/phones.md` (`zaisma://phones`) | The game should play on phones or tablets. | | `references/saves.md` (`zaisma://saves`) | The game keeps progress. | | `references/pieces.md` (`zaisma://pieces`) | Adding a shared piece to the game, moving one to a newer version, changing one through its settings and hooks, finding one on the marketplace, or making and publishing a piece for other games. | | `references/sdk.md` (`zaisma://sdk`) | Writing code that calls `Zaisma.*` in the game. | | `references/game-server.md` (`zaisma://game-server`) | Writing the game server, running it on the developer's own server, or testing with play-locally. | | `references/errors.md` (`zaisma://errors`) | An error code isn't clear from its answer. | | `references/naming.md` (`zaisma://naming`) | Naming fields, options or code that talks to Zaisma. | | `references/developer-api.md` (`zaisma://developer-api`) | Any call's fields and answers, the REST API, webhooks, the upload command. | --- # Developer API One API behind the developer MCP, the upload command (`packages/cli`) and the dashboard (zaisma.com/dashboard, `apps/site/src/dashboard.ts`), so they always agree. Base: `https://zaisma.com/api/dev`. Every answer is JSON. Errors say what happened, which input, and what to do (see Errors below), and every call that changes something answers with `next_steps` (see Next steps). Names follow [`docs/NAMING.md`](NAMING.md): each one says what it holds, what kind of value and in what unit (`file_count`, `size_bytes`, `play_duration_min`, `width_px`), times are ISO 8601 in UTC (`created_at: "2026-10-14T09:30:00.000Z"`) and come in the same way, every ID says its kind (`version_8f3k…`, `topic_9x2m…`, `post_4kq7…`; an ID of another kind is refused with `wrong_id_kind`, saying what it is and where the right one comes from), a plural is always a list, and every answer has the same keys every time (`null` when not set). Inputs are closed: a field or query parameter a call doesn't take is refused (`unknown_field`), never quietly ignored, and so is a value that isn't one of its choices; a call that takes no body refuses one (`unknown_field` for its first key, `bad_json` for anything that isn't a JSON object), though an empty body or `{}` passes. The JSON Schema of each answer is in `apps/site/src/schemas.ts`. ## The MCP Any AI tool that supports remote MCP servers can manage your games at `https://zaisma.com/mcp`, signed in with the same API key. In Claude Code: ```bash claude mcp add --transport http zaisma https://zaisma.com/mcp --header "Authorization: Bearer $ZAISMA_KEY" ``` Apps that can't send a key connect by signing in instead. In claude.ai: Settings → Connectors → Add custom connector, with `https://zaisma.com/mcp`; ChatGPT and other apps the same way, wherever they add a remote MCP server. The app opens a Zaisma page where you choose what it may do and tap your passkey, then you're back in the app with every tool working. The key command above stays the way for Claude Code and the upload command. Every tool is a call to this API (`apps/site/src/mcp.ts`): `list_games`, `create_game`, `get_game`, `get_playing_now`, `get_whats_on`, `update_game`, `check_game` (what Zaisma would refuse in a game and what won't work on Zaisma, before uploading; see Checking a game below), `upload_files` (small games up to 5 MB, sent as file contents), `get_version`, `update_version` (a version's notes before it's live), `publish_version` (also rolls back and publishes later), `cancel_scheduled_publish`, `end_preview_links`, `add_image`, `remove_image`, `add_clip`, `remove_clip`, `add_shader`, `check_shader` (a shader drawn as the check would, before it's sent; see Backgrounds below), `remove_shader`, `set_background`, `preview_game_page` (pictures of every place players meet the game, from what you're still designing; see Seeing it as players do below), `add_tester_link`, `add_game_invite`, `remove_game_invite`, `update_tester_link`, `remove_tester_link`, `get_reports`, `get_stats`, `get_history`, `get_qr_code` (the game's link, or a room's, as a QR code), `export_game` (everything about a game as one .zip; see Export everything below), `get_logs` (what the game server printed, see A game server's logs below), `get_player`, `get_access` (what the key can do), `get_activity` (your account's activity, needs a full key), the inbox's `list_inbox`, `update_inbox_notice`, `delete_inbox_notice` and `set_inbox_settings`, a game's `announce_event` and `reply_to_bug_report` (see The inbox below), `get_feedback`, `reply_to_feedback` and `report_feedback` (see Player feedback below), `list_api_keys` (your keys and connected apps with their end dates, last use and whether Zaisma turned one off; needs a full key), the sign-in apps' `list_sign_in_apps`, `create_sign_in_app`, `update_sign_in_app` and `delete_sign_in_app`, hosting credit's `get_credit`, `top_up_credit`, `refund_top_up`, `start_credit_plan`, `change_credit_plan`, `stop_credit_plan` and `get_spending_request` (see Hosting and credit below), Zaisma Pro's `get_pro`, `start_pro`, `cancel_pro`, `resume_pro` and `refund_pro` (see Zaisma Pro below), `get_storage`, `set_storage_budget`, `delete_version` and `delete_game`, `bring_back_game`, `erase_game_now`, `get_game_deletion_request` (see Storage below), the Stripe account's `get_stripe_account`, `connect_stripe_account`, `update_stripe_account` and `disconnect_stripe_account` (see Selling with the buy sheet below), the webhooks' `list_webhooks`, `create_webhook`, `update_webhook`, `delete_webhook`, `test_webhook` and `list_webhook_deliveries` (see Webhooks below), a game's secrets' `list_secrets`, `set_secret` and `delete_secret` (see Secrets below), `create_ticket_secret` (the secret a game's own server signs voice tickets with; see Voice below), the items' `list_items`, `set_item`, `remove_item`, `set_purchase_settings`, `grant_item`, `list_purchases`, `get_purchase`, `refund_purchase`, `mark_purchase_handled` and `get_player_items` (see Items and purchases below), a game's kept rooms' `list_kept_rooms`, `delete_kept_room`, `bring_back_kept_room` and `erase_kept_room_now`, `restore_kept_room`, `undo_kept_room_restore`, `list_kept_room_restores`, `restore_every_kept_room`, `get_kept_room_restore_batch`, `undo_every_kept_room_restore` (see Kept rooms below), a game's live rooms' `list_rooms`, `get_room`, `send_room_message`, `send_to_every_room`, `list_room_messages`, `cancel_room_message`, `kick_player` and `end_room` (see Reaching live rooms below), the game database's `get_database`, `query_database`, `batch_database`, `export_database`, `import_database`, `erase_player`, `restore_database` and `undo_database_restore` (see The game database below), cloud saves' `list_saves`, `get_save`, `change_save`, `replace_save`, `reset_save`, `list_save_copies`, `get_save_copy` and `restore_save_copy` (see Cloud saves below), and the developer forum's `search_forum`, `get_topic`, `post_topic`, `message_zaisma`, `reply_to_topic`, `vote`, `rate_post`, `bookmark_post`, `report_post`, `forum_people`, `still_happening`, `flag_misplaced`, `follow_topic` and `mark_answer` (see The developer forum below), and the developer marketplace's `search_pieces`, `list_pieces`, `get_piece`, `get_piece_version`, `read_piece_file`, `publish_piece`, `update_piece`, `add_piece_image`, `remove_piece_image`, `delete_piece_version`, `delete_piece`, `rate_piece` and `report_piece` (see The developer marketplace below). Bigger builds go through the upload command. Making a game players can play private or a draft again, and ending a live room (`end_room`), need `"confirm": true`, so the AI asks you first. Every tool has an output schema, and answers are compact JSON. Arguments are closed: one a tool doesn't take is refused (`unknown_field`, with the arguments it does take), never quietly dropped, and a missing required one is `missing_field`. A refused call is a tool result with `isError: true`, the error object below as its `structuredContent` and its message, fix and code as its text; each tool's listed output schema is its answer or that error, because MCP clients check both against it. The tools that are easy to get wrong (`update_game`, `check_game`, `upload_files`, `publish_version`, `search_forum`, `post_topic`, `change_save`, `replace_save`, `set_secret`) carry good examples in their input schema and bad ones at the end of their description. ## Teaching your AI Zaisma teaches any AI its own workflow, the same way everywhere, from one source in the repository (`skills/zaisma/`, the open SKILL.md format): - **The skill.** `npx @zaisma/cli skill` installs the Zaisma skill into every AI tool it finds on the computer: Claude Code (`~/.claude/skills/zaisma`), Codex (`~/.codex/skills/zaisma`), Cursor (`~/.cursor/skills/zaisma`), Gemini CLI (`~/.gemini/skills/zaisma`), and the shared `~/.agents/skills/zaisma` that several tools read. It writes only where a tool's own folder is already there (and always the shared one), lists each folder and asks once first; `--yes` skips the question, `--project` installs into the current project's folders instead, and `--folder ` into one folder only. With `--json` it needs `--yes` (`install_not_confirmed` otherwise) and answers `{ installed_copies: [{ tool, folder }], skipped_tools }`. It never writes over a `zaisma` skill it didn't install (`skill_not_ours`). Every later run of any `zaisma` command updates the copies it installed to its own version, saying so in one line (with `--json`, a `skill_updates` list of `{ tool, folder, from_version, to_version }` in the answer). - **The Claude Code plugin,** the MCP and the skill together, from the developer tools' repository: `/plugin marketplace add zaisma/zaisma-sdk`, then `/plugin install zaisma@zaisma`. - **The MCP's resources and prompts.** With nothing installed, any AI connected to the MCP reads the same skill: resources `zaisma://skill` (read first), `zaisma://sdk`, `zaisma://naming`, `zaisma://errors`, `zaisma://game-server` and `zaisma://developer-api` (this page), and the guides `zaisma://multiplayer`, `zaisma://loading`, `zaisma://phones` and `zaisma://saves`, each opened only when the game needs it (`resources/list`, `resources/read`, all `text/markdown`). Three prompts start from the moments an AI starts from (`prompts/list`, `prompts/get`): `make_game` (`idea`), `publish_game` (`slug`) and `fix_problem` (`slug`, and `error_code` or `version_id`, one of them). - **llms.txt.** `https://zaisma.com/llms.txt` answers "tell me about Zaisma" in the llms.txt format; `https://zaisma.com/llms-full.txt` is the skill, this page and the SDK reference in one file. - **Error pages.** Every error code has its own page, `https://zaisma.com/developers/errors/` (all of them at `/developers/errors`), with what it means and the general fix, and every error answer links it as `help_url`. ## Errors Every error, in the API and the MCP, has the same shape: ```json {"error": {"code": "bad_play_modes", "message": "The online mode's play_style is missing or isn't co-op, versus or both.", "field": "play_modes[1].play_style", "fix": "Give play_style: co-op (together), versus (against each other) or both, like { \"mode\": \"online\", \"minimum_player_count\": 2, \"maximum_player_count\": 4, \"play_style\": \"co-op\" }.", "message_for_people": "One of the ways to play isn't one Zaisma knows. Check Players and save again.", "retry_after_sec": null, "help_url": "https://zaisma.com/developers/errors/bad_play_modes"}} ``` - `code`: stable, one problem per code, from the list below; search the forum with it (`search_forum`) to find others who hit it. Codes named `bad_` mean that input's value isn't one the call takes. - `message`: what happened, in one sentence. - `field`: the input at fault, with its place in a list when it's in one (`files[3].path`, `debug_context.call`), or `null`. - `fix`: what to do about it, naming the call or the value when there is one. - `message_for_people`: what happened and what to do, in a page's words, naming no call or field: the only text Zaisma's pages show. Show it to your human as it is when they should read what the dashboard would say. - `retry_after_sec`: how long to wait when waiting helps (`slow_down`, `post_limit`, `still_scanning`), also sent as the `Retry-After` header; otherwise `null`. - `help_url`: the code's page, `https://zaisma.com/developers/errors/`: what it means and the general fix. The fix in the answer is for this case, and comes first. - `confirm_url`: only with `confirmation_needed`, where the developer does it themselves on zaisma.com with their passkey (see Hosting and credit). - `spending_request_id`: only with `confirmation_needed` for a raise in spending; `GET /spending-requests/:spending_request_id` checks the developer's answer (IDs `spending_request_…`). - `game_deletion_request_id`: only with `confirmation_needed` for deleting a game or erasing a kept room's world; `GET /games/:slug/deletion-requests/:game_deletion_request_id` checks the developer's answer (IDs `game_deletion_request_…`). The HTTP status goes with the code, as listed. The list lives in `ERROR_CODES` (`packages/core/src/errors.ts`), and a test keeps this page in step with it. **Signing in and requests** | Code | HTTP | Meaning | | --- | --- | --- | | `no_key` | 401 | The MCP was called without an API key or a connected app's token. | | `bad_key` | 401 | The API key isn't valid: removed, mistyped or never made. | | `key_turned_off` | 401 | The API key was found in public and turned off for good. | | `key_ended` | 401 | The API key reached the end date it was made with. | | `access_token_ended` | 401 | A connected app's access token is past its hour; the app refreshes it by itself. | | `token_not_for_api` | 401 | A connected app's token works only at the MCP, not the REST API. | | `signed_out` | 401 | No API key, and no signed-in session. | | `no_account` | 401 | The account isn't finished yet. | | `bad_origin` | 403 | A call with a session came from another site. | | `key_not_allowed` | 403 | The API key is limited to other games, or its access doesn't cover the call. | | `slow_down` | 429 | Too many calls in a minute. | | `not_found` | 404 | There's no API call at that path. | | `bad_method` | 405 | The path doesn't take that method. | | `gone` | 410 | The call was removed, like the first feedback calls. | | `bad_json` | 400 | The body isn't a JSON object. | | `json_too_big` | 413 | The JSON body is over the call's size limit. | | `wrong_shape` | 400 | A field that isn't the type or size its call takes, refused before any of the call's own code runs. | | `unknown_field` | 400 | A field, argument or query parameter the call doesn't take. | | `missing_field` | 400 | A field the call needs wasn't sent. | | `wrong_id_kind` | 400 | An ID of another kind was sent, like an image ID as version_id. | | `internal_error` | 500 | Something broke on Zaisma's side. | **Games** | Code | HTTP | Meaning | | --- | --- | --- | | `no_game` | 404 | You have no game with that slug. | | `bad_slug` | 400 | The link name isn't lowercase letters, numbers and single hyphens, or is reserved. | | `slug_taken` | 409 | Another game has that link name, or a deleted game had it. | | `slug_locked` | 409 | new_slug can't change the link: the game isn't a private draft, or was published, or has tester links or kept rooms. | | `too_many_games` | 403 | The account holds as many games that no players play as it can. | | `account_banned` | 403 | Zaisma banned the account's developer side, or the whole account: only get_access, list_games and export_game work, and for a whole-account ban nothing does. | | `account_paused` | 403 | A person at Zaisma needs to look at the account: until then it can't make, upload or publish games, or post on the forum. | | `bad_title` | 400 | A game's, topic's or precedent's title is empty or too long. | | `fake_reward_words` | 400 | A game's title or description promises a fake reward: another platform's currency or something of real value, like free Robux, V-Bucks, gift cards or cash. | | `title_names_zaisma` | 400 | A game's title holds the whole word Zaisma, which only Zaisma's own games can use. | | `bad_description` | 400 | The description isn't text of up to 500 characters. | | `bad_visibility` | 400 | visibility isn't draft, listed, unlisted or private. | | `bad_devices` | 400 | devices isn't a list of phone, tablet and computer. | | `bad_genres` | 400 | genres isn't a list of up to 3 of Zaisma's genres. | | `bad_controls` | 400 | controls isn't a list of touch, keyboard_mouse and gamepad. | | `bad_screen_orientation` | 400 | screen_orientation isn't portrait, landscape, either or null. | | `bad_play_modes` | 400 | play_modes isn't a list of play modes, or one of them is wrong. | | `bad_cloud_saves_enabled` | 400 | cloud_saves_enabled isn't true or false. | | `bad_account_offer_enabled` | 400 | account_offer_enabled isn't true or false. | | `bad_deleted_account_erase_enabled` | 400 | deleted_account_erase_enabled isn't true or false. | | `bad_friend_joins_enabled` | 400 | friend_joins_enabled isn't true or false. | | `bad_performance_measuring_enabled` | 400 | performance_measuring_enabled isn't true or false. | | `bad_microphone_enabled` | 400 | microphone_enabled isn't true or false. | | `bad_room_browsing` | 400 | room_browsing isn't page, game or off. | | `bad_multiplayer_mode` | 400 | multiplayer_mode isn't none, relay or own. | | `bad_account_requirement` | 400 | account_requirement isn't none, multiplayer or whole_game. | | `bad_minimum_player_age` | 400 | minimum_player_age_years isn't 13, 16 or 18. | | `accounts_needed_for_minimum_age` | 400 | A game for 16 or 18 and up needs account_requirement whole_game, since only accounts have an age. | | `content_needs_minimum_age` | 409 | A version shows lifelike gore, which plays only in games for 16 and up. | | `gallery_picture_needed` | 409 | A listed game needs at least one gallery picture. | | `bad_link_out_url` | 400 | link_out_url isn't an https address of a site of its own: not a link shortener, an IP address, an address with a user name or a Zaisma address. | | `link_out_not_browser` | 400 | link_out_url is a store, payment or video page, or a download, not a game that plays in a browser. | | `game_hosted_here` | 409 | The game has a live version on Zaisma, so it plays here and can't link out. | | `hosted_only_setting` | 409 | The setting is for games hosted on Zaisma, and this game is a link-out listing (or the listing can't be set while the game has it). | | `bad_links` | 400 | links isn't a list of up to 20 { link_name, destination_url, is_on_game_page } with names of their own and https addresses that aren't link shorteners, IP addresses, addresses with a user name, or on Zaisma's own domains. | | `bad_own_server_urls` | 400 | own_server_urls isn't a list of up to 5 server addresses like wss://play.example.com, or one is an IP address, this computer or on Zaisma's own domains. | | `bad_game_server_allowed_hosts` | 400 | game_server_allowed_hosts isn't a list of up to 20 host names (like discord.com or *.example.com), or one is an IP address or on Zaisma's own domains. | | `built_in_server` | 403 | The game runs a game server built into Zaisma, which only Zaisma changes. | | `game_removed` | 403 | Zaisma took the game down, so this can't change. | | `needs_confirm` | 409 | Hiding a game players can play, or ending a live room, needs the developer's OK. | | `bad_period_duration_days` | 400 | period_duration_days isn't a whole number from 1 to 90. | | `bad_cursor` | 400 | cursor isn't a next_cursor from an earlier answer. | **Players** | Code | HTTP | Meaning | | --- | --- | --- | | `no_player` | 404 | No account has that player ID: a guest's, or a deleted account's. | **Covers, gallery pictures, backgrounds and other images** | Code | HTTP | Meaning | | --- | --- | --- | | `bad_kind` | 400 | kind isn't one of the choices the call takes. | | `not_an_image` | 415 | The file isn't an image of a type the call takes. | | `image_too_big` | 413 | The image is over 10 MB. | | `bad_image_dimensions` | 400 | The image is smaller than its kind's least size (a cover or gallery picture 1280 by 720, a square cover 512, a share picture 600 by 315), or over 8,192 px on a side. | | `not_square` | 400 | A square cover isn't as wide as it is tall. | | `too_many_gallery_pictures` | 400 | The game has 8 gallery pictures already. | | `image_refused` | 422 | The image can't be used. | | `no_image` | 404 | The game has no image with that ID. | | `no_file` | 400 | A form on Zaisma's pages was sent without its image. | | `bad_background_shape` | 400 | A wide background is landscape (1.3 to 2.4 times as wide as tall), a phone background portrait (1.6 to 2.4 times as tall as wide), and its long side at least 1600 px. | | `not_a_shader` | 400 | A shader's pass isn't GLSL text with a mainImage function, or has its own main(), a #version or #extension line, texture2D, iMouse or sound. | | `shader_too_big` | 413 | A shader's pass is over 64 KB. | | `bad_buffers` | 400 | buffers isn't a list of { buffer_name, source, channels } with buffer_name a, b, c or d, each once. | | `too_many_buffers` | 400 | A shader has more than 4 buffers. | | `bad_shader_channel` | 400 | A channel isn't { channel_index 0 to 3, input_kind, buffer_name or image_id, filter, wrap }, names a buffer the shader doesn't have, or a texture that isn't an approved shader_texture of the game. | | `shader_texture_too_big` | 413 | A shader texture is over 8 MB, or over 4,096 px on a side. | | `too_many_shader_textures` | 400 | The game has 16 shader textures already, or a shader's channels name more than 4. | | `shader_texture_in_use` | 409 | A shader the game keeps reads this texture. | | `daily_shader_checks_used` | 429 | The account has run 100 shader checks in the last day. | | `daily_page_previews_used` | 429 | The account has run every page preview its plan has in the last day (20, or 60 with Pro). | | `page_preview_unavailable` | 503 | Zaisma can't open pages in Chrome right now, so it can't picture them. | | `bad_page_preview_images` | 400 | images isn't a list of up to 8 { kind, image_base64 } or { kind, image_id }, with kind cover, share, screenshot, background or phone_background. | | `bad_page_preview_shaders` | 400 | shaders isn't a list of { screen, image, buffers } with each screen at most once. | | `shader_check_unavailable` | 503 | Zaisma can't draw shaders here right now, so it can't check one. | | `no_shader` | 404 | The game has no shader with that ID. | | `bad_screen` | 400 | screen isn't wide or phone. | | `bad_background_source` | 400 | source isn't zaisma, image or shader, or wide (which only phone takes). | | `background_not_ready` | 409 | The image or shader isn't this game's, isn't approved yet, or is for the other screen. | | `bad_color` | 400 | The color isn't #RRGGBB. | **Clips** | Code | HTTP | Meaning | | --- | --- | --- | | `not_a_clip` | 415 | A clip is one MP4 file, not fragmented, with one H.264 picture track. | | `clip_has_sound` | 400 | A clip is silent, and this one has a sound track. | | `clip_too_long` | 400 | A clip runs at most 6 seconds. | | `clip_too_big` | 413 | A clip is at most 6 MB. | | `bad_clip_dimensions` | 400 | A clip fits inside 1200 by 630 px, and is at least 600 by 315. | | `bad_clip_still` | 400 | A clip comes with its still: its first frame, a PNG, JPEG or WebP the clip's size, up to 2 MB. | | `clip_refused` | 422 | The clip can't be used. | | `no_clip` | 404 | The game has no clip. | **Uploading versions** | Code | HTTP | Meaning | | --- | --- | --- | | `bad_files` | 400 | files isn't a list of files in the shape the call takes. | | `bad_path` | 400 | A file's path is absolute, has . or .. in it, has control characters or is over 200 characters. | | `hidden_file` | 400 | A file or folder's name starts with a dot. | | `precompressed_file` | 400 | A file is pre-compressed (.gz or .br). | | `file_type_not_allowed` | 400 | A file is of a type games can't have. | | `file_too_big` | 413 | A file is over 500 MB. | | `duplicate_path` | 400 | Two files share a path. | | `no_index_html` | 400 | There's no index.html at the top of the game. | | `too_many_files` | 400 | The game has more than 20,000 files. | | `storage_full` | 413 | The upload doesn't fit in what the account can store. | | `new_data_limit` | 429 | The account has sent all the new data it can today, counted from UTC midnight. | | `too_big_for_mcp` | 413 | upload_files and check_game take up to 5 MB; bigger builds go through the upload command. | | `bad_base64` | 400 | Something sent as base64 isn't valid base64. | | `files_missing` | 409 | Some of the version's files haven't been sent yet. | | `bad_patch_notes` | 400 | patch_notes isn't text of up to 2,000 characters, or a publish changed them on a version that has been live. | | `bad_is_big_update` | 400 | is_big_update isn't true or false, or an upload sent it without publish_when_approved. | | `big_update_needs_patch_notes` | 400 | A big update has no patch_notes, and a big update must say what's new. | | `big_update_already_live` | 400 | The version has been live already, and only a version going live for the first time can be a big update. | | `bad_publish_when_approved` | 400 | publish_when_approved isn't true or false. | | `bad_match_update_mode` | 400 | match_update_mode isn't next_match or now, or it came without publish_when_approved. | | `version_limit` | 429 | The game has had 100 versions in the last day. | | `version_in_use` | 409 | The version can't be deleted: it's live, set to publish, or a tester link picked it. | | `kept_for_review` | 403 | The version or game is kept for a person at Zaisma, so it can't be deleted. | | `bad_confirm_slug` | 400 | confirm_slug isn't the game's link name. | | `not_waiting_to_erase` | 409 | The game isn't deleted and waiting to be erased, so there's nothing to bring back or erase now. | | `already_erasing` | 409 | The game's week is over and its erasing has started, so it can't be brought back. | | `played_by_others` | 409 | Other people played this game, so it waits out its week before it's erased; only a game nobody but its developer played can be erased at once. | | `no_game_deletion_request` | 404 | This game has no deletion request with that ID. | | `bad_monthly_storage_budget_cents` | 400 | monthly_storage_budget_cents isn't null or a whole number from 100 to 1,000,000. | | `no_content_length` | 411 | A file was sent without a Content-Length header. | | `file_needs_parts` | 413 | A file over 95 MB was sent in one go. | | `no_body` | 400 | A file was sent without a body. | | `hash_mismatch` | 400 | A file doesn't match the SHA-256 it was sent as. | | `forbidden_file` | 400 | A file is a program or an archive, whatever its name says. | | `bad_size_bytes` | 400 | size_bytes isn't a whole number above 0. | | `bad_part_number` | 400 | A part's number isn't from 1 to 10,000. | | `no_upload_id` | 400 | A part was sent without its upload_id. | | `bad_part_size` | 400 | A part is empty, over 50 MB or has no Content-Length header. | | `upload_closed` | 400 | The upload_id isn't an open upload any more. | | `bad_parts` | 400 | The finishing call isn't { upload_id, parts: [{ part_number, etag }] }. | | `parts_incomplete` | 400 | The parts sent don't make a whole file. | **Versions and publishing** | Code | HTTP | Meaning | | --- | --- | --- | | `no_version` | 404 | The game has no version with that ID. | | `bad_time` | 400 | A time isn't an ISO time in the range it takes: scheduled_publish_at from a few minutes to 90 days ahead, a tester link's ends_at from now to a year ahead, a database restore's restore_to_at within the last 30 days and not before the game was made, a room message's send_at from 10 seconds to 90 days ahead, and a What's on entry's starts_at from an hour ago to 90 days ahead and its ends_at after now and starts_at and at most 60 days after it. | | `still_scanning` | 409 | The version is still being scanned. | | `not_approved` | 409 | The version didn't pass review, so it can't be published. | **Tester links** | Code | HTTP | Meaning | | --- | --- | --- | | `bad_name` | 400 | A tester link's or sign-in app's name isn't 1 to 60 characters, or a sign-in app's says Zaisma. | | `too_many_tester_links` | 403 | The game has 50 tester links on already. | | `no_tester_link` | 404 | The game has no tester link on with that ID. | | `bad_version_choice` | 400 | version_choice isn't live, newest_passed or picked, or picked_version_id doesn't go with it. | **Game invites** | Code | HTTP | Meaning | | --- | --- | --- | | `username_not_found` | 404 | No account has that username. | | `game_not_private` | 409 | Only a private or draft game takes invites: a listed or unlisted one opens to everyone already. | | `too_many_game_invites` | 403 | The game has 200 invited accounts already. | | `no_game_invite` | 404 | The game has no invite with that ID. | | `cannot_invite_self` | 400 | The game's own developer can't be invited: they open it already. | **Sign in with Zaisma** | Code | HTTP | Meaning | | --- | --- | --- | | `bad_redirect_urls` | 400 | redirect_urls isn't a list of 1 to 10 https URLs (http only for localhost) without #fragments. | | `bad_replace_client_secret` | 400 | replace_client_secret isn't true or false, or the app is public and has no client secret. | | `too_many_sign_in_apps` | 403 | The account has 20 sign-in apps already. | | `no_sign_in_app` | 404 | You have no sign-in app with that ID. | | `bad_destination_kind` | 400 | destination_kind isn't endpoint_url or game_server. | | `bad_endpoint_url` | 400 | endpoint_url isn't an https URL on a name (no IP address, user name or #fragment), or it's on Zaisma's own domains, or it's given for a webhook to a game server, which has none. | | `bad_event_kinds` | 400 | event_kinds isn't a list of 1 or more of the webhook event kinds. | | `bad_game_slugs` | 400 | game_slugs isn't null or a list of 1 to 50 of your games' slugs, or, for a webhook to a game server, a list of the one game whose server it is. | | `bad_replace_signing_secret` | 400 | replace_signing_secret isn't true or false. | | `too_many_webhooks` | 403 | The account has 10 webhooks already. | | `no_webhook` | 404 | You have no webhook with that ID. | **The game database** | Code | HTTP | Meaning | | --- | --- | --- | | `bad_sql` | 400 | The SQL isn't one statement SQLite takes, or statements isn't a list of { sql, values }. | | `bad_values` | 400 | values isn't a list of text, numbers, null and { blob_base64 } for the SQL's ?s. | | `bad_player_id` | 400 | player_id isn't a player ID (player_…). | | `too_many_rows` | 400 | A statement answered more than 10,000 rows. | | `integer_too_large` | 400 | A statement answered a whole number past 2^53, which JavaScript can't hold exactly. | | `answer_too_big` | 400 | The rows answered come to more than 8 MB. | | `database_full` | 403 | The statement would grow the game's storage (its database and kept rooms) past the 10 GB a game can keep. | | `database_unavailable` | 503 | The game's database didn't answer. | | `database_restore_unavailable` | 501 | This Zaisma's game databases can't go back in time: its storage keeps no history, like a local preview. | | `no_database_restore` | 404 | The game has no database restore with that ID in the last 30 days. | | `bad_secret_name` | 400 | A secret's name isn't capitals, digits and underscores starting with a capital, up to 64 characters. | | `bad_secret_value` | 400 | secret_value isn't text of up to 8 KB. | | `no_secret` | 404 | The game has no secret by that name. | | `too_many_secrets` | 403 | The game has 50 secrets, the most it can have. | | `secrets_unavailable` | 503 | The game's secrets didn't answer. | | `no_kept_room` | 404 | The game has no kept room with that code. | | `no_kept_room_restore` | 404 | The kept room has no restore with that ID in the last 30 days. | | `no_kept_room_restore_batch` | 404 | The game has no restore of every kept room with that ID in the last 30 days. | | `kept_room_restore_unavailable` | 501 | This Zaisma's rooms can't go back in time: their storage keeps no history, like a local preview. | | `kept_room_restore_batch_running` | 409 | The game's kept rooms are going back to a moment already, and one batch runs at a time. | | `kept_room_copies_unavailable` | 501 | This Zaisma can't read its kept rooms' copies, so an erased kept room can't come back. | | `no_kept_room_copy` | 404 | No copy of the deleted world is left: a copy lasts about 28 days after a world is deleted. | | `room_code_in_use` | 409 | Another room of the game has that code now, so the deleted world can't come back under it. | | `game_storage_full` | 403 | The deleted world doesn't fit in the 10 GB a game can keep. | | `kept_room_not_waiting` | 409 | The kept room isn't deleted and waiting to be erased, so there's nothing to bring back or erase now. | | `kept_room_erasing` | 409 | The kept room's week is over and its erasing has started: in a minute it comes back only from its last copy. | | `no_room` | 404 | The game has no live room with that code on Zaisma. | | `no_player_in_room` | 404 | That player isn't in the room now. | | `bad_room_message` | 400 | message isn't plain JSON of up to 16 KB. | | `bad_labels` | 400 | labels isn't a list of up to 4 labels, each { label_name, label_value } of text. | | `bad_kick_message` | 400 | A kick's message isn't text of up to 200 characters. | | `bad_end_message` | 400 | An end's message isn't text of up to 200 characters. | | `room_busy` | 429 | The room took 100 room messages in the last second. | | `every_room_send_limit` | 429 | The game sent to every room 10 times in the last minute, from its game server, the API and the MCP together. | | `too_many_scheduled_room_messages` | 409 | The game has 100 scheduled room messages waiting, the most it can have. | | `no_scheduled_room_message` | 404 | The game has no scheduled room message with that ID waiting. | | `dump_too_big` | 413 | dump_sql is over 5 MB: import a dump in parts, each ending on a whole statement. | **Hosting and credit** | Code | HTTP | Meaning | | --- | --- | --- | | `hosting_paused` | 429 | The game's hosting is paused this month: its free allowance, its budget or its developer's credit is used, or Zaisma's free hosting ran out and it has no budget with credit, or it has no real players and games with none used their share. It starts again when the month resets, the budget is raised or credit is added. | | `confirmation_needed` | 403 | This needs the developer's passkey on zaisma.com (turning spending on or up, connecting a Stripe account, deleting a game other people played, or erasing a waiting game or kept room's world at once): confirm_url is where they do it. | | `bad_monthly_budget_cents` | 400 | monthly_budget_cents isn't a whole number of cents of at least 100 ($1), or null for no paid hosting. | | `bad_top_up_amount` | 400 | amount_cents isn't a whole number of cents from 1,000 ($10) to 100,000 ($1,000). | | `account_not_protected` | 403 | The account has no passkey and no email yet, and a top-up keeps a card, so it needs one of them first: add a passkey or an email on zaisma.com/account. | | `money_paused` | 423 | Top-ups and credit refunds on this account passed USD 2,000.00 in a day, so both are paused until a person at Zaisma looks. Credit already there keeps working. The developer gets an email when they're on again. | | `new_payer_limit` | 403 | A new account, or an account with a newly saved card, pays up to USD 100.00 in all, buys and credit together, in its first 7 days; this payment would go past it. The message says the day it lifts. | | `no_top_up` | 404 | You have no top-up with that ID. | | `no_spending_request` | 404 | You have no spending request with that ID. | | `top_up_not_refundable` | 409 | The top-up has nothing left to refund: it's spent, refunded, or over 30 days old. | | `bad_refill_level_cents` | 400 | refill_level_cents isn't a whole number of cents from 1,000 ($10) to 1,000,000 ($10,000). | | `already_credit_plan` | 409 | The developer already has a monthly credit plan, so there's nothing to start: change its level or stop it. | | `no_credit_plan` | 409 | The developer has no monthly credit plan to change or stop. | | `already_pro` | 409 | The developer already has a Zaisma Pro subscription (running, cancelled until the month ends, or a renewal Stripe is retrying), so there's nothing to start. | | `pro_not_refundable` | 409 | Zaisma Pro's payment can't be refunded: only the first payment, within 14 days of it, and only while it's the only one. | | `not_pro` | 409 | There's nothing to cancel or resume: the developer has no Zaisma Pro, or it's already cancelled (or isn't cancelled). | | `stripe_unavailable` | 503 | Stripe didn't answer, or this Zaisma has no Stripe account set up. | **A game server's logs** | Code | HTTP | Meaning | | --- | --- | --- | | `bad_room_code` | 400 | room_code isn't a room's code: six characters like K7Q2MX. | | `bad_minimum_level` | 400 | minimum_level isn't debug, info, warn or error. | | `bad_source_kind` | 400 | source_kind isn't room, request, schedule or webhook. | | `bad_search_text` | 400 | search_text is empty or over 200 characters. | | `bad_maximum_line_count` | 400 | maximum_line_count isn't a whole number from 1 to 500. | | `two_log_cursors` | 400 | get_logs got both cursor and new_lines_cursor. | **Items and purchases** | Code | HTTP | Meaning | | --- | --- | --- | | `no_item` | 404 | The game has no item by that name. | | `too_many_items` | 400 | The game has 1,000 items, the most it can have. | | `bad_item` | 400 | An item's name, title, description, kind, category, price or local prices isn't one set_item takes; field says which. | | `unsupported_currency` | 400 | Zaisma doesn't price in that currency. | | `price_too_low` | 400 | The price is under the least Stripe charges in its currency. | | `refund_policy_needed` | 409 | A game that sells anything states its refund policy first. | | `bad_refund_policy` | 400 | refund_policy isn't no_refunds, unused_within_14_days, within_14_days, own_words or null. | | `bad_refund_policy_text` | 400 | refund_policy_text isn't up to 600 characters of plain words, or doesn't go with refund_policy own_words. | | `bad_own_payment_categories` | 400 | own_payment_categories isn't a list of cosmetic, gameplay, content and currency. | | `item_has_owners` | 409 | Players bought or were granted the item, so it can't be removed; take its price off to stop selling it. | | `bad_item_count` | 400 | item_count isn't a whole number from 1 to 1,000, isn't 1 for a permanent item, or makes a buy's total more than 99,999,999 minor units. | | `bad_game_account_id` | 400 | game_account_id isn't text of up to 200 characters, or null. | | `bad_purchase_source` | 400 | purchase_source isn't sale or grant. | | `bad_purchase_status` | 400 | purchase_status isn't pending, completed, failed, refunded or charged_back. | | `no_purchase` | 404 | The game has no purchase with that ID. | | `already_refunded` | 409 | The purchase was refunded or charged back already. | | `stripe_not_connected` | 409 | Selling with the buy sheet, and refunding a sale, go through the developer's own Stripe account, which isn't connected: connect_stripe_account. | | `stripe_cannot_take_payments` | 409 | The developer's Stripe account is connected, but Stripe hasn't turned on payments for it yet: finish setting it up on Stripe's dashboard. | | `stripe_account_banned` | 403 | The Stripe account was banned from Zaisma with the account that connected it, so it can't be connected again. | | `email_banned` | 403 | The email was banned from Zaisma with the account it was on, so it can't be added to an account. | | `bad_is_stripe_tax_used` | 400 | is_stripe_tax_used isn't true or false. | | `bad_amount_minor_units` | 400 | amount_minor_units isn't a whole number from 1 to what's left of the sale to refund. | | `purchase_not_paid` | 409 | The sale wasn't paid (pending or failed), so there's nothing to refund. | | `not_for_sale` | 409 | The item has no price, so players can't buy it; it's only granted. | | `receipts_unavailable` | 503 | Zaisma couldn't sign the purchase's receipt at that moment. A grant answered with it wasn't made, so trying again grants it once. | | `bad_purchase_delivery` | 400 | purchase_delivery isn't game, game_server or own_server. | | `no_game_server` | 409 | purchase_delivery game_server needs a game server, on Zaisma or the developer's own, and the game has none. | | `already_handled` | 409 | The purchase was handed over already, or its refund was told already. | | `handled_by_server` | 409 | The game's purchases go to its game server or the developer's own server (purchase_delivery), so the game can't mark them handled. | | `bad_full_game_item` | 400 | full_game_item_name doesn't name one of the game's items that's permanent and content, or the game is another game's demo. | | `full_game_item_in_use` | 409 | The item is the game's full game (full_game_item_name), so it can't be removed or stop being permanent and content. | | `bad_demo_game` | 400 | demo_game_slug isn't another of the developer's games that's free to play, or the game itself is free to play. | | `account_requirement_locked` | 400 | A game that sells itself (full_game_item_name) needs account_requirement whole_game, since only accounts own it. | | `full_game_not_owned` | 403 | The game sells itself, and the player's account doesn't own it: buy it on its game page. | **Cloud saves** | Code | HTTP | Meaning | | --- | --- | --- | | `no_save` | 404 | The player has no save in the game. | | `no_save_copy` | 404 | The player's save has no earlier version with that ID. | | `bad_keys` | 400 | keys isn't a list of 1 to 100 localStorage keys of up to 1,000 characters. | | `bad_local_storage_items` | 400 | local_storage_items isn't an object of localStorage keys and their text (null removes a key in a change). | | `bad_indexeddb_databases` | 400 | indexeddb_databases isn't a list of databases, each { name, version, stores } as get_save answers them. | | `save_too_big` | 413 | The save would be over 5 MB. | | `cloud_saves_off` | 409 | The game has cloud saves off, so it doesn't read saves from players' accounts. | | `cloud_saves_not_here` | 409 | Cloud saves don't work here: this is a tester link, or this Zaisma has no accounts. The game page answers it to `Zaisma.saves` and `Zaisma.player.offerAccount()`; no API or MCP call returns it. | | `save_busy` | 409 | The player's game kept saving at the same moment, so the change didn't go through. | **The inbox** | Code | HTTP | Meaning | | --- | --- | --- | | `no_inbox_notice` | 404 | There's no notice with that ID in the account's inbox: deleted, past its 90 days, or never its own. | | `bad_inbox_section` | 400 | inbox_section isn't for_you or your_games. | | `bad_is_read` | 400 | is_read isn't true or false. | | `bad_is_archived` | 400 | is_archived isn't true or false. | | `bad_turned_off_notice_kinds` | 400 | turned_off_notice_kinds isn't a list of the inbox's kinds, or names account_security or legal, which always come. | | `too_many_notices` | 429 | The game sent 3 update and event notices in the last 7 days, the most a week takes. | | `game_not_playable` | 409 | The game isn't live and listed or unlisted, so nobody follows it to hear about an event. | | `bad_starts_at` | 400 | starts_at isn't an ISO time from now to 90 days ahead. | | `bad_ends_at` | 400 | ends_at isn't an ISO time after starts_at and at most 30 days after it. | | `no_bug_report` | 404 | The game has no bug report with that report_id from the last 90 days. | | `already_replied` | 409 | The game's developer already replied to this bug report or feedback: one reply each. | | `bad_reply_text` | 400 | reply_text isn't 1 to 1,000 characters of text that shows. | **Player feedback** | Code | HTTP | Meaning | | --- | --- | --- | | `no_feedback` | 404 | The game has no feedback with that feedback_id. | | `no_feedback_picture` | 404 | That feedback has no picture by that name. | | `feedback_from_guest` | 409 | A guest sent that feedback, or it's older than 90 days, when who sent it is cleared: there's no inbox to answer. | **The developer forum** | Code | HTTP | Meaning | | --- | --- | --- | | `no_topic` | 404 | There's no topic with that ID you can see. | | `no_post` | 404 | There's no post with that ID you can see in the topic. | | `no_known_issue` | 404 | There's no known issue with that ID. | | `no_media` | 404 | There's no image there you can see. | | `bad_tab` | 400 | tab isn't latest, top, unanswered, known, yours, messages or bookmarks. | | `bad_section` | 400 | section isn't one of the forum's sections. | | `contact_details_in_post` | 400 | A public forum post or its title holds an email address or asks to be reached somewhere else ("add me on…", "my Discord is…"): developers can be 13. | | `link_not_allowed_in_post` | 400 | A public forum post or its title links to a site outside the trusted list and the forum's developer sites (GitHub, MDN, npm, Stack Overflow, Zaisma's own, local addresses). | | `bad_category` | 400 | category isn't one of the forum's categories. | | `no_category` | 400 | A public topic was sent without its category. | | `bad_tag` | 400 | tag isn't one of the forum's tags. | | `bad_tags` | 400 | tags isn't a list of up to 3 of the forum's tags. | | `bad_topic_status` | 400 | topic_status isn't one of the statuses. | | `bad_is_answered` | 400 | is_answered isn't true or false. | | `bad_maximum_topic_count` | 400 | maximum_topic_count isn't a whole number from 1 to 30. | | `bad_detail` | 400 | detail isn't brief. | | `bad_post_selection` | 400 | post_selection isn't all, answer, latest or none. | | `bad_is_public` | 400 | is_public isn't true or false. | | `bad_text_markdown` | 400 | text_markdown is empty or over 8,000 characters. | | `bad_author_kind` | 400 | author_kind isn't developer or ai. | | `bad_debug_context` | 400 | debug_context isn't an object of its five text fields, up to 8,000 characters in all. | | `bad_images_base64` | 400 | images_base64 isn't a list of base64 images. | | `too_many_images` | 400 | A post carries more than 10 images. | | `bad_reopen` | 400 | reopen isn't true or false. | | `bad_answer_post_id` | 400 | answer_post_id isn't a post ID or null. | | `bad_reason` | 400 | reason isn't one of the report reasons. | | `post_limit` | 429 | The account has posted 100 times in the last day. | | `image_limit` | 429 | The account has uploaded 200 forum images in the last day. | | `not_yours` | 403 | Only the developer who started the topic can do that. | | `not_a_question` | 400 | Only a question has an answer to mark. | | `not_closed` | 400 | The topic isn't closed, so there's nothing to reopen. | | `not_released` | 400 | The topic isn't a known issue whose fix is out. | | `cant_vote` | 400 | The topic doesn't take your vote: it's yours, private, or a discussion. | | `cant_flag` | 400 | Only public topics others can see can be flagged as misplaced. | | `retired_tool` | 410 | The tool is retired; the error names the one that replaces it. | | `bad_rating` | 400 | rating isn't like or dislike. | | `cant_rate_post` | 400 | Only posts in public topics take likes and dislikes. | | `cant_rate_own_post` | 400 | Your own posts take no likes or dislikes from you. | | `cant_report` | 400 | The post can't be reported: it's yours, or Zaisma's. | **The developer marketplace** | Code | HTTP | Meaning | | --- | --- | --- | | `no_piece` | 404 | There's no piece with that name you can see. | | `no_piece_version` | 404 | The piece has no version with that number, or none that passed its checks. | | `no_piece_file` | 404 | That version of the piece has no file at that path. | | `no_piece_statement` | 400 | A piece was sent without its piece.json. | | `bad_piece_statement` | 400 | A piece's piece.json isn't one: field names what's wrong in it. | | `piece_statement_newer` | 400 | A piece's piece.json is written in a newer format than Zaisma reads. | | `piece_files_disagree` | 400 | The files sent aren't the ones the piece.json lists: one is missing, or one isn't listed. | | `piece_too_big` | 413 | A piece has more than 5,000 files or over 500 MB in all, or a skill is over 5 MB. | | `piece_name_taken` | 409 | Another developer has that name on the marketplace, or publishes under its scope. | | `piece_version_exists` | 409 | The piece already has that version: a published version never changes. | | `piece_version_breaks` | 409 | The new version keeps the first number of the one below it (the first two below 1.0.0) but takes away or changes something games use: a setting, a hook, an export, a need's range, or a pack's file. The message names each, and the fix the version it should carry. | | `piece_removed` | 403 | Zaisma took the piece down, so it takes no new versions and nobody can fetch it. | | `too_many_piece_versions` | 429 | The piece got as many versions today as it can. | | `piece_file_not_shown` | 400 | The file isn't text, or is over 256 KB, so it's fetched, not read. | | `piece_fetch_off` | 403 | The API key can't fetch other developers' pieces: its developer chose that when making it. | | `piece_approval_needed` | 403 | The API key asks the developer before fetching another developer's piece, and they haven't said yes to this one: confirm_url is its listing, where they do. | | `piece_fetch_declined` | 403 | The developer said no to fetching this piece. | | `bad_piece_kind` | 400 | kind isn't a kind of piece. | | `bad_sort` | 400 | sort isn't quality or newest. | | `bad_piece_name` | 400 | A piece's or a standard's name isn't a name as npm takes them. | | `bad_version_range` | 400 | version_range isn't a version or a semver range. | | `bad_piece_visibility` | 400 | A piece's visibility isn't private, unlisted or listed. | | `bad_source_url` | 400 | source_url isn't an https address on a site that hosts source code. | | `bad_confirm_piece_name` | 400 | confirm_piece_name isn't the piece's name. | | `too_many_piece_pictures` | 400 | The piece's listing has 8 gallery pictures already. | | `no_piece_image` | 404 | The piece's listing has no picture with that id. | | `image_not_checked` | 503 | Image matching didn't answer, so a listing's picture wasn't kept. | | `cant_rate_own_piece` | 400 | Your own pieces take no likes or dislikes from you. | | `bad_report_reason` | 400 | report_reason isn't one of the reasons the tool takes. | | `bad_report_details` | 400 | details is over 1,000 characters, or isn't text. | ## Next steps Every call that changes something answers with `next_steps`: the calls that usually follow, ready to make, or `[]` when nothing does. The steps of sending files (`PUT /files/:sha256`, the parts calls and `POST /forum/media`) are the exception: their next call is always the one that uses them. ```json "next_steps": [{"tool": "get_version", "arguments": {"slug": "sky-hopper", "version_id": "version_8f3k2m9q1x7c4v6b0n5z"}, "after_sec": 30, "reason": "The scan usually takes under a minute; once it passes, show the developer its preview_url."}] ``` - `tool` is the MCP tool's name (each maps to a call on this page); `arguments` are filled in as far as Zaisma knows, and `reason` says what to add (like a new game's files). - `after_sec`: how long to wait first, or `null` for straight away. - What follows today: a restored kept room, its undo and restores (`undo_kept_room_restore`, `list_kept_room_restores`); a restore of every kept room, its progress and the database and version calls with the same time (`get_kept_room_restore_batch`, `restore_database`, `publish_version`); a new game, its upload (`upload_files`); a new version, checking its scan (`get_version`); publishing while the game is a draft or private, making it `listed` when the developer wants players in (`update_game`); making a game `listed` or `unlisted` with nothing live, publishing the version that passed (`publish_version`), checking the one being scanned, or uploading one; `multiplayer_mode: "own"` without a game server, uploading one; scheduling a version still being scanned, checking its scan; a new webhook, or a new `endpoint_url` or signing secret, sending it a test event (`test_webhook`); a database restore, seeing the tables it went back to (`get_database`) and undoing it (`undo_database_restore`); an undo, `get_database`; a new image or shader, checking it (`get_game`); a shader check that passed, sending the same shader (`add_shader`, with its `image` and `buffers` to add); a new credit checkout or refund, `get_credit`; a new Zaisma Pro checkout or a Pro refund, `get_pro`; a kept room deleted, `list_kept_rooms`; a send to every room, `list_rooms`; a scheduled one, `list_room_messages` once it's due and `cancel_room_message`; a kick, `get_room`; an ended room, `list_rooms`; a secret set while the game server has no allowed hosts, `update_game` with `game_server_allowed_hosts`; a database import, `get_database`; `minimum_player_age_years` set to 16 or 18, which passes the versions held only for lifelike gore, `get_version`; a priced item before the Stripe account is connected or can take payments, and a new Stripe account connection, `get_stripe_account`. Other calls answer `[]` today; read `next_steps` on every answer, since more calls fill it within v1. ## The fixed checks are the review No AI reads an upload. Every version passes Zaisma's fixed checks and the sandbox's limits, and they decide it: the same files always get the same answer, usually in under a minute. A version that passes is ready to publish at once, with nothing reviewing it afterwards, no daily limit, and nothing on the game's meter. - **What the checks refuse,** each with its fix: crypto miners (in code, in an embedded module or in a `.wasm` file), code that runs text it decodes (base64, character codes or bytes) as code, password fields, and asking for a crypto wallet's seed phrase or private key or for access to a wallet other than Bitcoin's. `check_game` and `zaisma check` run the same checks before you upload (`packages/cli/fixed-checks.mjs`, open source like the rest of the upload command). - **What the sandbox stops while the game runs,** so trying it does nothing: connections to anything but the game's own files, Zaisma rooms and its own servers; forms that send anywhere; changing the page outside the game; opening sites without a tap; peer connections around Zaisma's relay. The checks note these when they see them, and hold nothing. - **What a person looks at:** known abuse images (matched and reported as the law requires), another developer's files, a code file too big to read in one go, and a scan that didn't finish. - **What goes by player reports:** everything no check can see for free and at once, like pictures, typed chat, a game asking for personal details, or lifelike gore. The content rules are the same either way. - **What watches after publishing:** players' reports, and Zaisma's watchers, which flag a game for a person to look at and change nothing by themselves: a game server on free hosting using far more time than its players explain, players' devices working unusually hard while the game is open, and plays with no real people behind them. For the second, Zaisma adds a small script to every game page that counts, where the browser says (Chrome and Edge), the seconds the game is on screen and the seconds of them the device's processor is under heavy load; only those two numbers leave the game's frame, added up per game and day. - **Zaisma's own lists wait for a new developer's game:** a listed game plays from its link and tester links at once, and Zaisma's home, browsing and search show it once it has had 10 real players and been live 3 days with no upheld report in the last 3. An established developer's game (`get_access` standing), and one from a developer Zaisma let publish before publishing opened to every account, shows at once. `is_waiting_for_zaisma_lists` on the game says which. - **When a live game breaks, roll back first, then fix:** publishing the last version that worked is instant; then publish the fix. ## Holds and takedowns When Zaisma holds, rejects or takes something down, it says why, the same way in the dashboard, these answers and the MCP: a `review_reason`, with the same parts as an error plus the content rule it's about. ```json "review_reason": {"code": "taken_down", "message": "The game's login screen asks players for their Steam password.", "content_rule": "malware", "fix": "If it's a mistake, or to say what you'll change, message_zaisma with the game_slug. Until Zaisma restores it, the game can't get new versions or change who can play it.", "message_for_people": "A person at Zaisma took the game down for the reason given. Until Zaisma restores it, the game takes no new versions. If it's a mistake, message Zaisma."} ``` - `code`: stable, one problem per code, from the list below, never the same as an error code; search the forum with it (`search_forum`). - `message`: what happened and why, in plain words: the code's meaning, or for a person at Zaisma, their own words. - `content_rule`: the content rule it's about ([zaisma.com/legal/content-rules](https://zaisma.com/legal/content-rules), each rule at `#`), or `null` when it breaks none, like a check that couldn't finish. A hold names the rule a person checks it against; a rejection or takedown, the rule it broke. - `fix`: what to do about it, naming the call when there is one. - `message_for_people`: what happened and what to do, in a page's words, naming no call or field: the only text Zaisma's pages show. Show it to your human as it is when they should read what the dashboard would say. Where it shows: - **A game's `review_reason`**: why it's `held` or `removed`; `null` while it's `pending` or `live`. Zaisma acts on `copyright`, `defamation` and `trademark` only when someone sends a notice ([zaisma.com/legal/dmca](https://zaisma.com/legal/dmca), [zaisma.com/legal/defamation](https://zaisma.com/legal/defamation), [zaisma.com/legal/trademark](https://zaisma.com/legal/trademark)), in a game's files and on its covers, backgrounds and title alike, and doesn't judge the notice itself: the game is `held` with `copyright_notice`, `defamation_notice` or `trademark_notice`, and the message says what the notice names. The game can still get new versions: publish one without it, and a person at Zaisma checks it and shows the game again, usually within a day (publishing tells Zaisma; there's nothing more to send). If the notice is wrong, the developer sends a counter-notice instead, which goes to the person who sent the notice; the game is back after 10 working days unless they say they've gone to court. The fixed checks never look for any of these rules. When a country's law forbids what US law allows (the UK's hatred offences, say), a notice from a court, regulator or police there blocks the game for players in that country only, and everyone else still plays it: it's in the game's `country_blocks` with `country_law_notice`, whose message says which law and what it names, and the `game_blocked_in_country` alert. Players there get a page saying it isn't available in their country (HTTP 451), and Zaisma's lists, its files and Zaisma rooms leave it out there; its preview links still open, so you can check a fix from there. The game keeps its versions and can publish more: publish one without what the notice names, and a person at Zaisma checks it and lifts the block, usually within a day. If the notice is wrong, write to safety@zaisma.com with the game's slug and why. A `country_blocks_changed` webhook says when a block starts or ends. - **A version's `review_reason`**: a person rejected it, or a report paused the update; `null` otherwise. Its `findings` are what the scan found that holds or rejects it, each `{"code", "severity", "message", "content_rule", "path", "fix", "message_for_people"}`, where `severity` is `reject` (it can't go live: fix what it names and upload again) or `hold` (a person at Zaisma looks first, usually within a day). A finding with severity `info` is a note and holds nothing: `unregistered_link`, `unlisted_address`, `top_navigation`, `relay_bypass`, `external_form` (each something the sandbox already stops) and `api_key_in_files`. A fixable refusal never counts against the developer's standing; a crypto miner or a file antivirus engines flag does. - **An image's `review_reason`**: why it wasn't approved. - **`get_history`**: each hold, rejection and takedown with its `review_reason`, kept after it's over. - **A hold or rejection a person finds wrong:** `message_zaisma` with the `version_id`; a person at Zaisma looks, usually within a day. - **Errors:** `game_removed` and `not_approved` put the reason's code and message in theirs, and its fix as theirs. The list lives in `REVIEW_CODES` and the rules in `CONTENT_RULES` (`packages/core/src/review.ts`), and a test keeps this page in step with them. Rule says which content rule a code is about: one rule always, `none` when it breaks none, or `picked` when the person deciding picks it each time. **The fixed checks** | Code | Rule | Meaning | | --- | --- | --- | | `crypto_miner` | `malware` | The code mines cryptocurrency. | | `disguised_code` | `malware` | The code runs text it decodes (base64, character codes or bytes) as code, which hides what it runs. | | `password_field` | `malware` | The game has a password field. Games don't need one, and phishing pages do. | | `wallet_request` | `crypto` | The game asks players for a crypto wallet's seed phrase or private key, or for access to a wallet other than Bitcoin's. | | `top_navigation` | none | The code tries to change the page outside the game (the top or parent window's location). The game's frame stops it, so nothing happens. | | `relay_bypass` | none | The code makes a WebRTC connection from a frame of its own. Zaisma's relay still carries it, so players never see each other's internet address. | | `external_form` | none | The game has a form that would send what players type to another site. The game's security policy stops it, so it never sends. | | `antivirus_flag` | `malware` | Antivirus engines flag a file: three or more reject the version, fewer hold it for a person. | | `unregistered_link` | none | The game opens a site with window.open or a link that opens a new tab. The sandbox blocks that, so players tapping it get nothing. | | `unlisted_address` | none | The game connects to an address that isn't Zaisma rooms or one of its own servers. The game's security policy blocks it, so the call fails for players. | | `matches_another_developers_game` | `copyright` | Most of this version's files are already in another developer's game, so a person at Zaisma looks first. | | `matches_banned_account_files` | none | Most of its files match a game Zaisma took down. | | `api_key_in_files` | none | A Zaisma API key was in the game's files, so Zaisma turned it off: anyone who plays the game could have read it. | **Checks that couldn't finish (no rule broken)** | Code | Rule | Meaning | | --- | --- | --- | | `too_much_code` | none | A code file is bigger than the checks read in one go (40 MB), so a person at Zaisma looks first. | | `too_many_pictures_inside_packs` | none | The game's packs hold more pictures than image matching checks inside them (10,000), so the first 10,000 were matched. | | `image_matching_off` | none | Image matching isn't connected, so a person at Zaisma approves each version. | | `image_matching_failed` | none | Image matching couldn't check every picture and video, so a person at Zaisma looks first. | | `scan_failed` | none | The scan didn't finish after three tries, so a person at Zaisma looks. | **From the AI review, before the fixed checks became the review** Versions the AI review held before Nov 24, 2026 still read with its code. Setting the game for 16 and up passes one held only for lifelike gore. | Code | Rule | Meaning | | --- | --- | --- | | `ai_lifelike_gore` | none | The AI review found lifelike gore (photo-real or lifelike injury shown up close), which plays only in games for 16 and up. | **People and reports** | Code | Rule | Meaning | | --- | --- | --- | | `needs_review` | none | A person at Zaisma needs to look at it first. | | `report_paused_game` | none | A player report paused the game while Zaisma checks it. | | `report_paused_update` | none | A player report paused this update while Zaisma checks it; players get the version before it. | | `rejected_by_zaisma` | picked | A person at Zaisma rejected the version; the message says why. | | `taken_down` | picked | A person at Zaisma took the game down; the message says why. | | `copyright_notice` | `copyright` | The owner of a work sent a copyright (DMCA) notice, so players can't open the game; the message says what it names. | | `defamation_notice` | `defamation` | A private person sent a defamation notice saying the game falsely accuses them of a crime, so players can't open the game; the message says what it names. | | `trademark_notice` | `trademark` | The owner of a registered trademark sent a notice, so players can't open the game; the message says what it names. | | `country_law_notice` | none | A notice says the game breaks a law of one country that US law allows, so players in that country can't open it, and everyone else still can; the message says which law and what it names. | | `developer_account_deleted` | none | The game's developer deleted their Zaisma account, which takes their games down with it. | | `developer_deleted_game` | none | The game's developer deleted it. | | `image_rejected` | picked | A person at Zaisma didn't approve the image; the message says why. | | `link_flagged` | `malware` | Cloudflare lists the link's site for malware or phishing, so the link opens for nobody. | | `details_rejected` | picked | A person at Zaisma didn't approve the new title or description; the message says why. | **The shader check** (see Backgrounds), **and the retired listing check**, whose codes pictures and titles from before Nov 25, 2026 may still carry (no AI reads covers, pictures or titles now) | Code | Rule | Meaning | | --- | --- | --- | | `extra_text_on_cover` | none | The cover, square cover or share picture has words besides the game's title, a subtitle and the studio's logo; the message quotes them. | | `overlay_on_cover` | none | Something is laid over the cover, square cover or share picture: a button, menu, shop panel, badge, sticker, or an arrow or circle pointing at something; the message says what. | | `search_words_in_title` | none | The title lists what the game is instead of naming it: "Neon Rush: Racing Drift Car Driving Simulator". A name that says what its game is, however long, is fine: "Car Mechanic Simulator". | | `tag_in_title` | none | The title carries a tag instead of only naming the game: a bracketed tag like [UPDATE], an emoji, or NEW, UPDATE or FREE used as a tag. "+1" and "2x" are fine. | | `fake_reward` | `malware` | A cover, gallery picture, title or description promises a fake reward or real-money bait, like free Robux, V-Bucks, gift cards or cash; the message quotes it. Players can't open the game until a person looks. | | `text_on_background` | none | A background has no title, logo or text on it; those go on the cover. The message quotes what it found. | | `overlay_on_background` | none | Something is laid over a background instead of being part of its world, like a button, badge or sticker, so it doesn't show; the message says what. | | `shader_does_not_compile` | none | The shader didn't compile; the message gives the first compiler error. | | `shader_too_slow` | none | The shader took too long to draw a frame in the check, at one of its quality levels; the message says which, how long, and the most it can take. | | `shader_flashes` | none | The shader flashes more than 3 times a second, which can cause seizures. | | Rule | What it says | | --- | --- | | `child_safety` | Sexual content involving minors, in any form. Zaisma reports it to the National Center for Missing & Exploited Children. | | `sexual` | Sexually explicit content. | | `malware` | Malware, crypto mining, phishing, scams or anything that tries to break out of the game. | | `illegal` | Content that is illegal in the United States, including real-money gambling. | | `real_people` | Private details about real people, real threats, or calls for real violence. | | `copyright` | Other people's games, art, music or characters used without permission. | | `defamation` | False claims that a real private person committed a crime. | | `trademark` | Other people's trademarks used so that players would think their owner made or backs the game. | | `personal_details` | Asking players for personal details like emails, real names, birthdays or location inside the game. Every player has a Zaisma ID and name; games with their own accounts link them through Sign in with Zaisma, and anything more happens on the developer's own site. | | `chat` | Typed chat between players outside Zaisma's chat hosting. In Zaisma rooms, chat goes through room.chat; on your own server, through canChat and checkChat. Preset phrases and emotes are always fine. | | `crypto` | Cryptocurrency other than Bitcoin: using or promoting other coins, tokens, NFTs or airdrops. A story that mentions one is fine. Bitcoin games are welcome, but not investment advice, mining on the player's device, paying players sats, or asking for seed phrases or permission to spend from a wallet. | | `purchases` | Selling paid random rewards (loot boxes), including through coins bought with money, or showing prices in coins or gems bought with money without the real price beside each one, even when the coins themselves are sold at a real price. | | `faked_plays` | Faking plays or players, with bots, scripts or click farms. | Allowed, even where other platforms ban it (`ALLOWED_CONTENT`): report triage dismisses reports about it. - Offensive, edgy and dark humor, insults and swearing. - Jokes and opinions about any group, religion, country or political side. There's no hate-speech rule. - Mocking, memes and satire of real people, from politicians to celebrities, with their name, face and photo. - Violence that is gameplay: shooting, fighting, war and horror, including against real people. - Real wars and history, with their uniforms, flags and symbols. - Drinking, smoking and drugs as part of a story or setting. - Casino and card games played for points or coins that cannot be bought or cashed out. - Trash talk and fiery lobbies: how players talk to each other is up to each game. - Bitcoin games: teaching it, Bitcoin themes, selling items for sats, and tips. One kind of content plays only in games for 16 and up: lifelike gore, meaning photo-real or lifelike injury shown up close (dismemberment, torture, exposed organs). Cartoon, pixel and stylized blood are fine for everyone. No check looks for it: players report it, and a person decides. Publishing or giving a tester link such a version while the game is for everyone 13 and up, or lowering the age to `13` while players can reach one, answers `content_needs_minimum_age`. Covers and gallery pictures never show lifelike gore, whatever the age. Players never see the age. For where each line is, see the yes/no test under each rule at [zaisma.com/legal/content-rules](https://zaisma.com/legal/content-rules). ## Signing in Make an API key on Developer settings (zaisma.com/dashboard/settings, under Keys) and send it as `Authorization: Bearer zsk_…`. The key is shown once; we keep only a hash. Any account can make up to 10 keys and remove them at any time. Making one needs a passkey: Developer settings adds one the first time, then each key is a tap. Keys are made only there, never through the API or MCP, so an AI can't give itself a new key. Pages on zaisma.com can use the signed-in session instead. Up to 120 requests a minute per account, plus up to 1,000 a minute for sending files. A key lasts until you remove it, or until the end date you gave it (7 days, 30 days, 90 days or a year; `get_access` shows it as `api_key_ends_at`); after that it answers `key_ended`. A key found in public (GitHub's secret scanning, a game's uploaded files or a forum post) is turned off for good within minutes: it answers `key_turned_off`, saying where it was found, and the games keep running, since games never use keys. `list_api_keys` shows each key's end date, last use and whether it was turned off. An AI app that connects by signing in (claude.ai, ChatGPT, any MCP client that can't send a header) gets a connection, made on one Zaisma page: "Connect Claude to your games" says where you go back to, offers Full on all your games with no end date, and Change opens the same choices as a key (a level or a choice per area, which games, an end date). Continue needs a tap on your passkey, as making a key does; every sign-in asks, with no remembered yes. A connection is listed with your keys on the account page and in `list_api_keys` (`kind: "connected_app"`, with `connected_app_host`), is held to what you chose exactly as a key is, lasts until you remove it or its end date, works only at `/mcp`, and can never make keys. Connecting the same app again replaces its old connection. Any account can have up to 10 connected apps, counted apart from its 10 keys. Any account can make, upload and publish games, from the dashboard, the MCP and the upload command alike. Every version passes Zaisma's fixed checks before anyone else can play it (see The fixed checks are the review), a new developer's listed game waits a little for Zaisma's own lists, and links to other sites wait for the account's standing (below). ### Standing Every account earns standing from plain facts, never a hidden score, and nobody else sees it. An account is **established** once it's 14 days old, 20 different returning players have played its games, and nothing was ruled against it in 30 days (a version rejected, or a game taken down; a hold or a listing reason isn't a ruling). A returning player is a signed-in player whose plays counted on your games on 2 different days, with an account at least 7 days old that has played on 3 days; guests, your own account and accounts Zaisma stopped or banned never count. Players are counted once a day. | Power | Opens | | --- | --- | | Zaisma's own lists (home, Browse, search) | From the first day, for listed games | | Links on trusted domains (see Registered links) | From the first day | | Links to any other site, for signed-in adults | Once established, or at once with a card that paid Zaisma (a top-up or Zaisma Pro) or a connected Stripe account that can take payments | | Search engines (the sitemap, and no `noindex` on game pages) | Only once established | A ruling closes links to other sites and search engines at once, for 30 days; a ban closes them for as long as it lasts. A rejection a person at Zaisma finds wrong and approves (`message_zaisma` with the version's ID asks for one) stops counting at once: the 30 days run from the last ruling still standing, or there's no wait, and the game's history says `ruling-overturned`. `GET /access` answers `standing`: `{ is_established_developer, outside_links_enabled, search_engines_enabled, returning_player_count, minimum_returning_player_count, account_age_days, minimum_account_age_days, has_card_or_stripe_account, last_ruling_at, ruling_wait_ends_at, message_for_people }`, where `message_for_people` says what's open and what opens next. The game dashboard's Links say the same under the field. ### Bans Zaisma can ban an account for breaking the content rules. A developer ban (`ban_scope` `developer`) takes down the account's games and answers `account_banned` (403) to every call but `GET /access`, `GET /games` and a game's export (`GET /games/:slug/export` and its download), so the developer keeps their work; playing still works. A whole-account ban (`whole_account`) closes the account: no sign-in, no session, no API key. A ban carries over the cards that paid Zaisma, the connected Stripe account and the email, never a device or network: another account can't connect that Stripe account (`stripe_account_banned`) or add that email (`email_banned`), and a version most of whose files match a banned account's game is held with `matches_banned_account_files` until a person looks. To appeal a ban, write to safety@zaisma.com with the username; a person reads every appeal and answers. ### Connected apps (OAuth) For people writing an MCP client: Zaisma follows the MCP authorization spec. `POST /mcp` without a token answers 401 with `WWW-Authenticate: Bearer resource_metadata="https://zaisma.com/.well-known/oauth-protected-resource/mcp", scope="mcp"`. That document (RFC 9728) names `https://zaisma.com` as the authorization server, whose metadata is at `/.well-known/oauth-authorization-server` (RFC 8414). An app names itself by a client ID metadata document (an https URL whose JSON has the same `client_id`, a `client_name` and up to 10 `redirect_uris`; read again after a day), or registers at `POST /oauth/register` (RFC 7591; up to 10 a minute from one address, with `token_endpoint_auth_method` `none`, `client_secret_basic` or `client_secret_post`). Redirect URLs are https, or http on `localhost` and `127.0.0.1`. Then the authorization code flow at `/oauth/authorize` and `/oauth/token`, with PKCE S256 always and `resource` `https://zaisma.com/mcp` when sent (RFC 8707); the one scope is `mcp`, and `openid`, `profile` and `offline_access` are accepted and dropped. The access token (`zat_…`) lasts an hour and works only at `/mcp`, where an ended one answers `access_token_ended` and the REST API answers `token_not_for_api`. The refresh token (`zrt_…`) lasts as long as the connection and works once: each refresh answers new tokens. One used again within a minute is refused with `invalid_grant`; one used again later removes the connection, since only a stolen copy does that. ### What a key can do A key can be limited, for CI and collaborators, to some of your games and to what it may do: one of four levels, or a choice per area. | Level | What it can do | | --- | --- | | `full` | Everything. Keys made before levels existed are full keys for every game. | | `publish` | Upload and publish versions, change games, their secrets and tester links, and post on the forum. Reads everything else; can't run SQL, change saves, sign-in apps, webhooks or credit. | | `upload` | Send files and make versions (drafts), and read everything. Can't publish, change games or post on the forum. | | `read` | Read games, versions, stats, the database, saves, items and purchases, the forum and hosting credit. Changes nothing. | | `custom` | A choice per area, below. | | Area, in `area_access` | Choices | What it covers | | --- | --- | --- | | `game_access` | `read`, `write` | read: list and get games, with images, versions, scans, tester links and secrets' names. write: also details, visibility, images, tester links, secrets, the hosts its game server calls, and new games. | | `version_access` | `read`, `upload`, `publish` | upload: send files and make versions, which wait as drafts. publish: also publish, schedule and roll back, and make versions with `publish_when_approved`. | | `stats_access` | `none`, `read` | Stats, player reports and history. | | `database_access` | `none`, `read`, `write` | read: tables, indexes, use and `export`. write: run SQL (`query`, `batch`), `import` and restore to a time. | | `save_access` | `none`, `read`, `write` | Players' cloud saves. read: read them and their copies. write: change, reset and restore them. | | `purchase_access` | `none`, `read`, `write` | Items and purchases. read: the items, purchase settings, purchases and receipts. write: set and remove items, change purchase settings, grant items and refund. `read`, `upload` and `publish` keys read them; only `full` writes. | | `forum_access` | `none`, `read`, `write` | write: post, reply, vote, follow and message Zaisma, in your name. | | `sign_in_app_access` | `none`, `read`, `write` | Sign-in apps. | | `webhook_access` | `none`, `read`, `write` | Webhooks. | | `credit_access` | `none`, `read`, `write` | Hosting credit (see Hosting and credit) and Zaisma Pro (see Zaisma Pro). read: the balance, top-ups and spending, and the plan. write: also start a top-up, refund one, start, change or stop the monthly credit plan, start, cancel, resume or refund Pro, and change a game's `monthly_budget_cents`. A first or higher budget, and a higher plan level, always need your passkey on zaisma.com (`confirmation_needed`). | | `stripe_account_access` | `none`, `read`, `write` | The Stripe account sales go to (see Selling with the buy sheet). read: whether it's connected and can take payments. write: also ask for a connection link, turn Stripe Tax on or off, and disconnect. Connecting itself needs your passkey on zaisma.com (`confirmation_needed`). `read`, `upload` and `publish` keys read it; only `full` writes. | Apart from the levels, every key and connected app has a `piece_fetch_mode`, chosen when it's made: whether what holds it may fetch other developers' pieces from the marketplace (see The developer marketplace). `ask`, the default: only the pieces you said yes to on zaisma.com. `free`: any piece it can see. `none`: never. Your own pieces never ask, whatever the key. Every key sees its games and their versions, so `game_access` and `version_access` start at `read`. A key limited to some games lists only those, reaches only those games' forum topics (a topic about another game answers `key_not_allowed`), can't make games, and can't reach sign-in apps, webhooks, hosting credit or the Stripe account, which belong to your whole account. Public profiles (`GET /players/:player_id`) and `GET /access` work with any key. `GET /activity` and `GET /api-keys` need a full key for all your games: they show where your account and its keys are used from. A call a key doesn't reach answers `key_not_allowed` (403), saying what it would need. Every call is checked before any of it runs, in this order: the key's access, whether your account can publish yet (for the calls above), what the path names (your game, webhook or sign-in app, or a forum topic you can see), the inputs (closed), each input that needs more than the call (`publish_when_approved`), and what the inputs name (a forum post's `game_slug`, a webhook's `game_slugs`, a version's `files`, a `known_issue_topic_id` or `topic_id`), with a key limited to some games held to those. Someone else's game, webhook, sign-in app or private topic is answered exactly as one that isn't there (`no_game`, `no_webhook`, `no_sign_in_app`, `no_topic`), and so is a file only someone else sent (`files_missing`). | Call | What it does | | --- | --- | | `GET /whats-on` | What the home's window shows right now: `event` and up to 3 `cards` (MCP `get_whats_on`) | | `GET /playing-now` | Everyone playing on Zaisma right now: `playing_now_player_count` and the `busiest_games`. See Who's playing on Zaisma. | | `GET /access` | What the key you called with can do: `{ "access": { api_key_name, api_key_ends_at, access_level, area_access, game_slugs, piece_fetch_mode }, "banned_at", "ban_scope", "credit_balance_cents", "plan" }`. `banned_at` and `ban_scope` (`developer` or `whole_account`) say when and how far Zaisma banned the account, or are `null` (see Bans). `credit_balance_cents` is your hosting credit, or `null` when the key can't read it (`credit_access` `none`, or a key limited to some games). `plan` is `free` or `pro` (see Zaisma Pro). `standing` is what the account has earned and what each power needs (see Standing), and `next_steps` offers `top_up_credit` and `connect_stripe_account` while a card or Stripe account would open links to other sites. `area_access` has every area's choice, whatever the level; `game_slugs` is `null` for every game you have and will make. From the dashboard's session, `api_key_name` is `null` and access is full. | ### Your account's activity | Call | What it does | | --- | --- | | `GET /api-keys` | Your API keys and connected apps, newest first: `api_keys`, each with `api_key_name` (a connected app's own name), `kind` (`api_key`, or `connected_app` for an AI app connected by signing in), `connected_app_host` (where a connected app sends you back, like `claude.ai`; `null` for a key), `access_level`, `area_access`, `game_slugs`, `created_at`, `last_used_at`, `last_used_where` (what it was last used with and from where; `null` when unknown or the account doesn't keep where it's used from), `ends_at` (`null` when it lasts until removed), `turned_off_at` and `found_in` (`github`, `game_files` or `forum_post`) with `found_at_url` when Zaisma turned it off because it was found in public, and `is_this_key`. It needs a full key for all your games. Keys are made and removed only on the account page. | | `GET /activity` | Your account's security activity from the last 90 days, newest first, 50 a page: `events`, each with `kind`, `description`, `sign_in_kind` (`password`, `passkey`, `email_code`, `google` or `discord` for a sign-in on a new device), `subject_name` (the passkey's device or the key's name), `done_by` (`you`, `api_key`, `ai` or `zaisma`), `api_key_name`, `device`, `network_name`, `city_name`, `region_name`, `country_code`, `connection_address`, `happened_at` and `security_alert_status` (below); `unseen_security_alerts`, the security alerts no email told the account about that still wait in its inbox, newest first, up to 10, each like an event; `next_cursor` (pass it as `cursor` for older events, `null` on the last page); and `where_used_from_enabled`. It needs a full key for all your games, since it shows where your account is used from. Keep where my account is used from changes only on the account page, so an AI can't turn it off and erase where it was used from. A game's changes are in its history. | **Security alerts.** The risky moments are security alerts: a sign-in on a new device from a network the account hasn't signed in from in 90 days, a password or email added, changed or removed, a passkey removed, an API key made, used from a new place or turned off because it was found in public, a key or AI app deleting a game's kept worlds, an AI or app connected, and an app Zaisma disconnected because its refresh token was used twice. Each is emailed to the account (an email change or removal to the old address too), at most 10 an hour; each also waits, flagged, in the account's inbox (Was this you?), until it presses That was me there. Each event's `security_alert_status` says which: `emailed`, `unseen` (no email told it, and it's still waiting in the inbox), `seen`, or `null` when it isn't an alert. Answering is only in the inbox on zaisma.com, so a key can't hide them. A `security_alert` webhook (see Webhooks) sends each one as it happens. ## Games | Call | What it does | | --- | --- | | `GET /games` | Your games, each with its `alerts` (see Alerts below), and `unread_topic_count`: how many of your forum topics Zaisma has replied to or changed since you last opened them. | | `POST /games` | Make a game: `{"title", "slug"?, "description"?, "glass_tint_color"?, "devices"?, "controls"?, "genres"?, "screen_orientation"?, "play_modes"?, "cloud_saves_enabled"?, "account_offer_enabled"?, "deleted_account_erase_enabled"?, "friend_joins_enabled"?, "performance_measuring_enabled"?, "microphone_enabled"?, "multiplayer_mode"?, "room_browsing"?, "account_requirement"?, "minimum_player_age_years"?, "game_server_allowed_hosts"?, "own_server_urls"?, "links"?, "link_out_url"?}`. It starts as a draft that only you can see. Publishing is never limited, but an account holds at most 50 games that no real players play; a game with players frees its slot. | | `GET /games/:slug` | One game with its `alerts` (see Alerts below), `playing_now_player_count` (the exact number of people playing it now: browsers that pressed Play and still have it on screen, and players in your Zaisma rooms, each counted once however many rooms they sit in, from the last 6 minutes; players see it from 3 up), `in_room_player_count` (players in your Zaisma rooms now: the ones a publish with `match_update_mode` `"now"` drops and reloads), `images`, `clip` (see Clips), `versions` (newest first, each with its `review_reason` and scan `findings`) and `testers`. | | `PATCH /games/:slug` | Change any of `new_slug` (the game's link, only while `can_change_slug`: a draft or private game never published, with no tester links or kept rooms; else `slug_locked`), `title`, `description`, `visibility`, `devices`, `controls`, `genres`, `screen_orientation`, `play_modes`, `cloud_saves_enabled`, `account_offer_enabled`, `deleted_account_erase_enabled`, `friend_joins_enabled`, `performance_measuring_enabled`, `microphone_enabled`, `room_browsing`, `multiplayer_mode`, `account_requirement`, `minimum_player_age_years`, `game_server_allowed_hosts`, `own_server_urls`, `links`, `glass_tint_color`, `demo_game_slug`, `full_game_item_name` (the game's price to play, see "Sell your game once" under Items and purchases; it needs `purchase_access` `write`), `monthly_budget_cents` (the game's monthly budget from your hosting credit, see Hosting and credit; it needs `credit_access` `write`, and a first or higher budget answers `confirmation_needed`). Leave out what stays the same; `null` clears it. Answers with the `game`, `review_message` (set when new words wait for review), `game_server_problem` (why the game's own game server can't run yet, or `null`) and `next_steps`. | A game looks like: `slug`, `page_url`, `can_change_slug`, `title`, `description`, `visibility`, `is_waiting_for_zaisma_lists` (a listed game from a new developer, waiting for real players and a few quiet days before Zaisma's own lists show it; its link plays meanwhile), `zaisma_lists_wait` (where a live waiting game stands, null when it isn't waiting or isn't live: `is_held_by_reports`, true when reports a person or triage upheld hold it, never who reported or what they wrote, and `progress`, null when only a report holds it: `live_duration_days` of `minimum_live_duration_days`, `counted_player_count` of `minimum_counted_player_count` and `quiet_duration_days` of `minimum_quiet_duration_days`, the same limits that open the lists every hour), `review_status`, `review_reason`, `erases_at`, `is_erase_now_allowed`, `country_blocks`, `devices`, `controls`, `genres`, `screen_orientation`, `play_modes`, `cloud_saves_enabled`, `account_offer_enabled`, `deleted_account_erase_enabled`, `friend_joins_enabled`, `performance_measuring_enabled`, `microphone_enabled`, `multiplayer_mode`, `room_browsing`, `account_requirement`, `minimum_player_age_years`, `game_server_allowed_hosts`, `own_server_urls`, `has_ticket_secret` (whether its own server has a ticket secret for voice, see Voice), `links`, `link_out_url`, `link_out_who_can_open`, `link_out_review_reason`, `details_waiting_for_review` (a title or description from before Nov 25, 2026 still waiting for a person; new words apply at once), `glass_tint_color`, `monthly_budget_cents` (`null`: no paid hosting), `purchase_label` (what the game page says it sells, see In-game purchases), `refund_policy` and `refund_policy_text` (`null` until it states one), `full_game_item_name` (`null`: free to play), `demo_game_slug` (`null`: no demo), `first_published_at` (when it first went live; it never moves), `big_update_at` (the last marked big update; `null`: none yet), `recently_updated_at` (where Browse's Recently updated places it) and `updated_at`. - **visibility:** `draft`, `listed` (home page, search and search engines), `unlisted` (anyone with the link, never in lists or search engines) or `private`. Draft and private games open only through preview links and tester links (below), and on their own page for their developer, signed in. There a multiplayer game plays online while the page plays the live version; a newer version not yet published plays alone, and joining a room says so. A game is listed only with at least one gallery picture, sent or approved: `listed` without one answers `gallery_picture_needed`, and so does removing the last gallery picture of a listed game. - **review_status** is ours and separate: `pending` (no version has passed review yet), `live`, `held` or `removed`, and `review_reason` says why it's held or removed (see Holds and takedowns). Changing visibility never undoes a takedown. - **country_blocks** lists the countries whose players can't open the game, each `{ country_code, country_name, review_reason, blocked_at }`, `[]` for none (see Holds and takedowns). - **page_url:** the game page's link. Query parameters on it that the page doesn't read itself go on to the game, so `?level=3` or `?sound=1` reaches `location.search` as on your own site. The page's own are `room`, `server`, `watch`, `play`, `buy`, `theme`, `state`, `screen`, `preview_bar`, `preview_save`, `parts` and `room_order`; the room's code, server and `watch=1` reach the game too. A query up to about 1,900 characters once URL-encoded goes on whole; a longer one goes on without the game's own. - **play_modes:** how it's played, shown on the game page with icons: a list with one entry per way to play, like `[{"mode": "single"}, {"mode": "online", "minimum_player_count": 2, "maximum_player_count": 4, "play_style": "co-op"}]`. `mode` is `single`, `local` (together on one device or screen) or `online` (each on their own device). `single` takes no counts; the others need `minimum_player_count` (2 or more) and `play_style` (`co-op`, `versus` or `both`), and `maximum_player_count: null` means no limit ("2+ players"). Answers give every key, `null` where it doesn't apply. `null` clears it. - **devices:** any of `phone`, `tablet`, `computer`. **controls:** any of `touch`, `keyboard_mouse`, `gamepad`. **screen_orientation:** `portrait`, `landscape`, `either` or `null` (not set). - **genres:** up to 3, different, from one list: `action`, `adventure`, `role_playing`, `shooter`, `strategy`, `simulation`, `racing`, `sports`, `fighting`, `platformer`, `puzzle`, `horror`, `survival`, `sandbox`, `card_and_board`, `party`, `rhythm`, `visual_novel`. Players filter Browse by them: a genre's own list is `zaisma.com/games?genre=` (`?genre=horror`; a value that isn't a genre shows every game). They come back in that order; `[]` clears them, and a game with none shows under All. Multiplayer isn't a genre: Browse's Multiplayer filter reads `multiplayer_mode` and `play_modes`. `["role_playing", "strategy"]` is right; `["rpg"]` or 4 genres answer `bad_genres`. - **cloud_saves_enabled:** `true` (the default) copies signed-in players' browser saves to their account, so their progress follows them to any device with no code in the game. It covers localStorage and IndexedDB (Unity, Godot and localForage saves included; databases with "cache" in the name, like Unity's download cache, are skipped), up to 5 MB per player. Set `false` for games that keep their own saves on a server. When a player has played on two devices, the progress played most recently wins and the other is kept as an earlier version; Zaisma never asks the player which to keep. - **account_offer_enabled:** `true` (the default) shows guests the "Keep your progress" card once they have progress and have played 5 minutes: beside the game, it offers a free account to keep their progress. Set `false` for games that offer accounts their own way, with `Zaisma.player.signIn()`. - **deleted_account_erase_enabled:** `true` (the default): when a player who played the game deletes their Zaisma account, Zaisma erases their rows from the game database, as `POST /games/:slug/database/erase-player` does, as well as sending `account_deleted` to your webhooks. Set `false` if the game must keep some of their rows (records the law says to keep, say), and handle the `account_deleted` event yourself. - **multiplayer_mode:** `none`, `relay` (Zaisma passes each message to the others, no server code) or `own`: your game server, from the live version's `zaisma-server/` folder (`index.js` first, importing the folder's other `.js`, `.json` and `.wasm` files, with every other file there a data file it reads with `room.readDataFile`) or one `zaisma-server.js`, runs on Zaisma rooms in a sandbox that calls only the hosts in `game_server_allowed_hosts`, with the game's secrets as `room.secrets` and its own SQLite database as `room.database` (see "Your game server on Zaisma" and "The game database" in the README, and The game database below to read and change it yourself). If the live version has no game server, or one over 500 files, 64 MB or 32 MB of code, the change is saved and `game_server_problem` says why; rooms open once a version that works is published. Games already on a game server built into Zaisma show `built-in` and can't change it themselves. Rooms on the old setting end within a minute. - **room_browsing:** for games on Zaisma rooms (`multiplayer_mode` other than `none`), where open rooms are listed so players can join them: `page` (the default) on the game page and to the game through `Zaisma.rooms.list()`, `game` only to the game (for games with their own lobby or server browser), or `off`. Room codes and invite links work either way, and the game can hide single rooms itself (see Multiplayer in the README). Whatever the setting, every game's page and the home say how many are playing now once it's 3 or more, for every game and not only multiplayer ones (no names); `GET /games/:slug` gives you the exact number. Rooms on your own servers aren't listed or counted. - **friend_joins_enabled:** `true` (the default) lets Join on zaisma.com (a friend's face on /friends, "Alex is playing" on the game page, a profile's Playing now) and `Zaisma.friends.list()` take a player into the room their friend is in, for any game with rooms (Zaisma rooms, or its own servers through `Zaisma.friends.setRoom`). `false` grays Join as "This game doesn't take joins". One room turns it off instead, shown as "Private room": `Zaisma.joinRoom({ friendJoinsEnabled: false })` from the player who makes it, or `room.setFriendJoinsEnabled(false)` (the game server's, or the host's with the relay). It isn't a lock: a room's code or link still reaches it, so close the room (`setOpen(false)`) or answer `false` from `canJoin` to keep players out. - **performance_measuring_enabled:** `true` (the default) has Zaisma measure how the game runs on players' devices, for `performance` in the stats (Play stats, below). `false` stops Zaisma adding its measuring script to the game's pages at all, and the stats answer `performance: null`. - **microphone_enabled:** `false` (the default) means the game is never allowed the microphone. `true` lets it ask players for it, for voice chat in rooms (`room.voice`) or a game played by voice. Browsers keep a player's yes for zaisma.com, not for one game, so where the browser already keeps one from another game, the game page asks the player once for this game before it plays (on that device); Not now plays without the microphone. - **account_requirement:** what the game needs a Zaisma account for. `none` (the default): guests play everything, and signed-in players play as their account. `multiplayer`: guests play alone; only signed-in players get player passes, so a guest's `Zaisma.player.getPass()` and `Zaisma.joinRoom()` fail with `error.code` `"account_needed"` (show your own message, or ask them to sign in without leaving the game with `Zaisma.player.signIn()`), and room links ask guests to sign in first. That's part of v1: a guest never gets a pass in such a game. `whole_game`: the game page says "Needs a Zaisma account" and Play asks guests to sign in first; only signed-in players get player passes. Passes are the backstop: Zaisma rooms also turn away guest passes given before the change, and your own servers can check a pass's `kind` claim for the same. Players under 13 can't make accounts, so they can't play games that need one. - **minimum_player_age_years:** the youngest age that can play, even when the game's content suits everyone. `13` (the default): everyone, guests included as `account_requirement` allows. `16` or `18`: only accounts that old; younger accounts don't find the game on Zaisma (home, More games, friends' Playing now, profiles), and a link to it says "This game isn't open to your account." Only accounts have an age, so above 13 the game needs an account for the whole game: giving `16` or `18` alone sets `account_requirement` to `whole_game` too, and any other `account_requirement` while it's above 13 is refused with `accounts_needed_for_minimum_age` (set it back to `13` first; that leaves `account_requirement` as it is). Zaisma enforces it: Play, player passes, the relay and requests to your game server turn away younger accounts with `game_not_open_to_player`, and Zaisma rooms remove ones already playing when you raise it. Tester links follow it (testers then need an account); your own previews don't. Neither your game nor your own servers ever learn a player's age: a pass never carries it, and a younger account never gets one. Lifelike gore needs `16` or `18`: see "Allowed, even where other platforms ban it" under the content rules. - **game_server_allowed_hosts:** the hosts the game's own game server can call with plain `fetch()` (game server reach): your own server, a payment provider, Discord, GitHub. Up to 20 host names, like `["discord.com", "api.github.com"]`, or `"*.example.com"` for every name under example.com (not example.com itself); `[]` (the default) for none, and the whole list each time. No `https://`, paths or ports: every call is https, never to an IP address, this computer or Zaisma's own domains. Live within a minute, with no approval by Zaisma, and kept in the game's history; players don't see it (the game page names only servers their browser connects to). Calls send up to 5 MB, get 10 seconds, aren't redirected (a redirect comes back to your code), and a game makes up to about 600 a minute in each place. A call to anything else throws an `OutsideCallError` in the game server, with a `code` (`not_https`, `unreachable_host`, `host_not_allowed`, `outside_call_limit`, `too_big`, `outside_call_timeout` or `outside_call_failed`) and a `fix`; the stats' `game_server_errors` show it. Raw sockets (`connect()` from `cloudflare:sockets`, `node:net` and `node:tls`) aren't offered: opening one throws. The game server reaches the game's database, receipts and rooms through `room` and `server` while a handler runs, and `env` from `cloudflare:workers` is empty. The tokens it needs go in its secrets (below). - **own_server_urls:** your own servers the game connects to from players' browsers: a game server you run with `@zaisma/game-server` (`Zaisma.joinRoom({ serverUrl })`), your own relay or your own API. Up to 5 addresses, each `wss://` or `https://` and the name, with a port if it needs one and nothing after it, like `["wss://play.example.com", "wss://eu.example.com:8443"]`; `[]` (the default) for none, and the whole list each time. Never an IP address, this computer (`localhost`) or Zaisma's own domains. `wss://` and `https://` of one server count once, and the game may use either. Live at once with no approval by Zaisma: players' next page load connects (a relay of your own within 5 minutes), and friends' Join can send them to rooms there. Kept in the game's history, and the game's ⋯ menu names them in neutral words: "Online play runs on the developer's own server: play.example.com". As with a link out, what players send there is beyond what Zaisma sees, so from the moment a game has one, its page says so under the title and Play first shows a warning naming the hosts, with one Play to go on (once a browser session per game; autoplay and room links ask too). A report against such a game for child safety, something illegal, malware or a harmful site takes it out of Zaisma's own lists at once until a person decides (its link still plays), and report triage never closes such a report by itself. Games that only use Zaisma rooms show nothing. Everything a game shows players is under the content rules wherever it comes from. Not for the servers your game server on Zaisma calls: that's `game_server_allowed_hosts`. From a terminal: `zaisma own-servers wss://play.example.com`. - **links:** the game's registered links, which it opens with `Zaisma.links.open` (Registered links, below); `[]` (the default) for none, and the whole list each time. - **full_game_item_name** and **demo_game_slug:** a game that sells itself once, and its free demo; see "Sell your game once" under Items and purchases. `null` (the default): free to play, no demo. - Titles, descriptions, patch notes, tester link and sign-in app names, and forum titles and posts take any language and emoji, but no invisible characters or characters that flip text direction (zero-width spaces, direction overrides, byte order marks and the like): the call answers `bad_` naming the character as `U+XXXX`. - A new title or description shows at once: no AI reads it. One promising a fake reward (free Robux, V-Bucks, gift cards or cash) is refused when sent (`fake_reward_words`, quoting the words); the rest goes by players' reports. | Call | What it does | | --- | --- | | `GET /games/:slug/reports?cursor=` | Player reports from the last 90 days (`period_duration_days`), counted by reason in `reasons` (`reason`, `label`, `open_count`, `closed_count`), and `bug_reports`: reports that report triage sorted as bugs, each with `player_text`, a one-line `summary`, the `version_id` they played and `reported_at`, and `player_reports`: reports about one of your game's players that Zaisma passed to you, newest first, up to 50, each with its `reason` (`harassment`, `cheating`, `other`, or one of the four Zaisma looks at itself when a person passed it on: `real_life_threat`, `personal_details`, `following_after_block`, `sexual`; age reports, `wrong_age` and `under_13`, stay with Zaisma), `player_text`, `chat_messages` (the reported player's own chat lines the reporter ticked, up to 20, from the reporter's screen: `from_player_id`, `text` and `sent_at`; `[]` when none; the reporter's own lines never leave Zaisma, since their text and times would say who reported), `reported_player_id`, `reported_player_name`, `room_code`, `version_id` and `reported_at`. How players treat each other is your game's call, with mute and block always there; Zaisma itself acts only on threats that reach into real life, sharing someone's personal details, following someone after they blocked them, and anything sexual toward a teen. Pass the `next_cursor` from your last call as `cursor` to get only the bug and player reports that arrived after it. Child-safety reports are never counted or shown, and no report says who sent it. | | `GET /games/:slug/stats?period_duration_days=30` | How the game is played, up to 90 days (`play_stats`, see Play stats below), how many accounts have it in their favorites now (`favorite_count`, never who), how it runs on players' devices (`performance`, the same section), and multiplayer use per day in `multiplayer_days`: `date`, `room_count`, `room_play_duration_min`, `message_count` (messages and bytes players sent), the day's room traffic per player a second (`inbound_messages_per_player_sec`, `inbound_size_bytes_per_player_sec`, `outbound_messages_per_player_sec`, `outbound_size_bytes_per_player_sec`, divided by its player time, each message out counted once per player it reached) and `game_server_cpu_duration_sec`, the time the game's own game server ran in its rooms (each call's time less its waits on the database, other servers and its own timers). `hosting_use_this_month`: the game's month on its one hosting meter (see Hosting and credit): `free_used_pct`, `shares`, `is_paused`, `paused_reason`, `paused_at`, `resets_on_date`, `monthly_budget_cents`, `spent_from_credit_cents`, and the raw counts behind it, facts for tuning that are never priced on their own: `room_play_duration_hours` on Zaisma rooms, `relayed_size_bytes` (the data Zaisma's relay sent the game's players for their connections to each other, read from Cloudflare about once an hour), `game_server_cpu_duration_sec` (its rooms, and requests, schedule runs and webhooks past their first 10 ms), `request_count` (requests, webhook events and schedule runs), `written_row_count`, `read_row_count` and `database_size_bytes`. Rooms on your own server aren't counted. `room_traffic`: this month's traffic per player a second (the same four numbers), `message_types`, its 10 biggest message types by bytes (`message_type`: a message's `data.type`, or `(none)`, `(bytes)`, `(zaisma)` for Zaisma's own, `(state)` for state sync's updates (`stateSyncEnabled`) and `(other)` past a room's first 20; `direction` `inbound` or `outbound`; `message_count`, `size_bytes`, `largest_size_bytes`, `average_size_bytes`), and `traffic_hints`, each a `code` and a `message` with the game's numbers: `json_messages_large` (a JSON type averages 512 bytes or more at 5 or more a player-second: send it as bytes), `outbound_heavy` (each player gets 32 KB a second or more: send only what changed and what they can see, with `stateSyncEnabled` and `stateView`), `message_near_limit` (a message of 12 KB or more, near the 16 KB limit) `latest_only_available` (a type goes to each player 10 or more times a second, and 10% or more of it went to players whose connection was backed up: send it with `delivery: "latest_only"`) and `input_frequent` (players' games send 15 or more messages a second each: unless the game needs every one, send input when it changes and positions with `delivery: "latest_only"`). Messages inside a combined message (the SDK's `sendCombiningEnabled`) count one by one in `message_types`, and once in `message_count`. Rooms on your own server aren't counted. `schedules`: the live version's schedules (see "Schedules" in the README), read within a minute of it going live, each with `schedule_name`, `cron` (UTC), `version_id`, `next_run_at` and `last_run_at` (`null` until it first runs); `[]` when it has none or players can't play the game. For games whose own game server runs on Zaisma (rooms on `own`, or any requests or schedules), each day's `game_server` has `call_count` (calls from its rooms), `request_count` (requests to `onRequest`, see "Requests to your game server" in the README), `scheduled_run_count` (runs of `onSchedule`), `crash_count` (a handler threw; that call, request or run is lost), `stopped_count` (ran on too long, like an endless loop; the match froze about 2 seconds, or the request or run failed) and `ended_match_count` (stopped twice, or 20 of its calls in a minute went past their CPU: 50 ms, or 50 ms for each tick a call carries), and `game_server_errors` lists the 20 most recent distinct errors: `kind`, `message` with the file and line it came from (a game server that didn't start says why, like an option it doesn't take, with the ones it does, or a cron that doesn't read; a run's error starts with its schedule's name), `occurrence_count`, `version_id`, `first_at` and `last_at`. Other games get `game_server: null` and `game_server_errors: []`. | | `GET /games/:slug/history` | What happened to the game in `events`, newest first, up to 100: `description`, `version_id`, `subject_name` (what it was done to, like a secret's name), `done_by` (`you`, `api_key`, `ai` or `zaisma`), `api_key_name`, where it came from (`device`, `network_name`, `city_name`, `region_name`, `country_code`, `connection_address`: kept 90 days, and `null` with Keep where my account is used from off, except that uploads keep their address 90 days either way), `is_new_place` (a key's first change from a network and country it hadn't been used from), `occurrence_count` (SQL writes, imports, exports and save reads and changes from one key within the hour fold into one event), `happened_at`, `last_happened_at` and, for a hold, rejection or takedown, its `review_reason` (otherwise `null`). Besides uploads, scans and publishes it holds database writes, imports, exports and restores (a restore's `subject_name` is the time it went back to; an undo's, the restore it undid), a re-upload of the game by another developer that Zaisma stopped (its `subject_name` is their username; you also get an email), save reads and changes, secrets and tester links; a key that isn't limited to some games also sees your webhooks and sign-in apps. | | `GET /games/:slug/qr-code?room_code=` | The game's link as a QR code: `link_url` (the game page, or with `room_code` a room in it) and `qr_code_svg`, an SVG document, black on white with its margin, to save as a `.svg` file or turn into a PNG at any size for posters, booths and trailers. The dashboard has it under Details with SVG and PNG downloads, and players get the same code from Share on the game page. `room_code` that isn't a room's code answers `bad_room_code`. | ### Alerts `alerts` on each game in `GET /games`, and beside the game in `GET /games/:slug`: what needs your attention in it, most urgent first, `[]` when nothing does. The developer home on zaisma.com/dashboard shows the same list on each game's card, and each game's Overview above everything else. Each is `{"kind", "message", "fix", "message_for_people", "version_id"}`, with `message_for_people` the words the dashboard shows and `version_id` naming the version it's about (`null` when it's about the whole game): - `game_removed`: Zaisma took the game down; `message` and `fix` are its `review_reason`'s. - `game_waiting_to_erase`: the developer deleted the game: it's off for every player and erased at `erases_at`, unless `bring_back_game` brings it back first. - `game_held`: players can't open the game while Zaisma checks it; likewise. - `game_blocked_in_country`: players in one country can't open the game, on a notice under that country's law, and everyone else still can; one alert for each country in `country_blocks`, with its message and fix. - `version_rejected`: the newest version was rejected. `GET /games/:slug/versions/:id` has its `findings`. - `version_held`: a version is waiting for a person at Zaisma (or a player report paused it), usually decided within a day. One alert per held version. - `link_flagged`: one of the game's registered links opens for nobody, since Cloudflare lists its site for malware or phishing. One alert per link; its `fix` is the link's `review_reason`'s. - `hosting_paused`: the game's hosting is paused this month (see Hosting and credit), with why: its free hosting is used and it has no budget (back on the 1st, UTC), its budget is used, your credit ran out, it has no real players and games with none used their share of free hosting (back once real players play it, or on the 1st), or Zaisma's free hosting for the month ended. No new rooms, connections between players or game server requests start; matches already running get an hour from the pause to finish, and take no new players meanwhile: the game server's `onEnding` and each player's `ending` event say when (`room.endsAt`). When the pause lifts within that hour (credit comes in, the budget is raised, the month resets), the end is called off: `room.endsAt` is `null` again, the game server's `onEndingCancelled` and each player's `endingCancelled` event say so, and the match takes new players again. The `fix` says what starts it again. - `free_rooms_stopped`: Zaisma's free room time for the month is used up across all games, and the game has no budget with credit (see Hosting and credit). No new rooms or connections between players start until the 1st (UTC); its database and game server requests go on. - `second_free_allowance_started`: the game filled its free hosting for the first time, so it has a second free allowance this month, once. - `database_full`: the game's storage (its database and kept rooms) reached the 10 GB a game can keep, so the database can change and delete rows but not grow, and no more rooms can be kept. - `hosting_nearly_paused`: 80% of the month's free hosting is used, and the game can't go on past it: it has no budget, or it has one but there's no credit to spend (a balance of 0). - `hosting_budget_nearly_used`: 80% of the game's monthly budget is used. - `credit_low`: your credit is under 20% of what there was right after your last top-up (`is_credit_low` in `GET /credit`), on each game with a budget, until the next top-up: add credit. - `database_nearly_full`: the game's storage is 80% of the 10 GB a game can keep. A heads-up is never given alongside its own paused or full kind. - `player_erase_failed`: Zaisma couldn't erase players who deleted their accounts from the game database (a foreign key refused it, say) after trying on the webhook schedule. `message` gives the newest failure and `fix` up to 5 player IDs to erase with `POST /games/:slug/database/erase-player` once it's fixed. It goes after 30 days. - `reports_open`: player reports from the last 90 days waiting for Zaisma, counted as `GET /games/:slug/reports` counts them. New kinds can be added, so show the `message` of one you don't know. ### What's on at Zaisma `GET /whats-on` (MCP `get_whats_on`): what the home's window shows right now, the same for everyone. `event` is the event running, or null. `cards` holds up to 3 cards, Zaisma's own first, each with `card_kind` (`game`, `event` for an event's poster, `news` for news for players), `slug` (null unless a game), `title`, `cover_url`, `link_url` and `tag` (`Pick`, `Updated`, `New`, `Trending`, `News` or null); while there are games, at least one card is a game. It fills itself from new games, big updates and what's trending, and changes each week. ### Who's playing on Zaisma `GET /playing-now` (MCP `get_playing_now`), also public at `zaisma.com/api/playing-now` with no key: `playing_now_player_count`, everyone playing on Zaisma right now, the total of every game's playing-now count; and `busiest_games`, the busiest listed games by play count alone, each with `slug`, `title`, `cover_url` and `playing_now_player_count` (null below 3 players). ### Play stats `play_stats` in the stats answer, counted by the game page with no code in the game. These are **counted plays**, Zaisma's official numbers: a play counts once the game has been on screen for a minute, in a browser Cloudflare's invisible check says is real (each check works once, and time can't be claimed faster than it passes). They're also what Popular and Trending use. - **days:** per day (UTC `date`), `play_count`, `player_count` (browsers with a counted play that day), `new_player_count` (browsers with their first counted play) and `play_duration_min` (time on screen in counted plays), plus `started_play_count`: every play started, counted or not. - **play_count**, **started_play_count**, **new_player_count** and **play_duration_min** over the period, and **average_play_duration_min** per counted play. - **came_back:** `after_1_day`, `after_7_days` and `after_30_days`, each `{"returned_pct", "returned_player_count", "new_player_count"}`: of the new players in the 30 days before, how many played again that many days after their first play. Only days that are over count, so `returned_pct` is `null` until there are some. A player is a browser: one person on two devices counts twice, and clearing the browser makes them new. Plays through tester and preview links, and your own while signed in, aren't counted. We keep only counts: nothing that says who played. Faking plays breaks the content rules: it takes a game off Popular, Trending and New, and doing it again can get the game taken down. `performance` in the stats answer says how the game runs on players' devices, measured in their browsers by a small script Zaisma adds to the game's pages at its public address, with no code in the game. Only you and your AI see it: never the game page, the shelves or the ranking. It's `null` when `performance_measuring_enabled` is off. - **version_totals:** each version played in the period, every device together, newest first. - **device_totals:** the newest version played in the period, by `browser_name`, `os_name` (read from the browser's user agent, which isn't kept), `device_kind` (`computer`, `phone` or `tablet`, as the game page tells them apart) and `graphics_family` (the graphics chip's maker, read in the game's frame so the chip's own name never leaves it; `unknown` when the browser hides it), most plays first. Groups under 20 plays fold into one last row whose four are all `other`, so a rare device can't single out a player. Each row has `version_id`, `play_count` and: - **median_loading_duration_sec**, **slow_tenth_loading_duration_sec:** from the game's page opening to its first draw on a canvas in the page, the same first draw the Chrome check measures (`performance_check.loading_duration_sec` on a version): half the plays drew within the median, and the slowest tenth took the slow tenth or longer. `null` when none drew. - **median_frames_per_sec**, **low_tenth_frames_per_sec:** frame rates of the seconds the game was on screen, counted from its own `requestAnimationFrame` frames, so a game that draws from a worker (OffscreenCanvas) or never asks for frames isn't measured (`is_measured: false`, and these are `null`). They're given as the band they fall in (15, 25, 30, 45, 60, 90 or 120; below 15, the rate itself): 60 means 60 to 89, since frame rates gather at screens' refresh rates. - **long_frames_per_min:** frames of 50 ms or longer, stutter a player feels, a minute of measured play. - **crashed_play_pct**, and crashed plays by what happened first, each play counted once: **error_stop_count** (an uncaught error after which the game asked for no frame for 5 seconds while on screen), **context_lost_count** (a WebGL context on a canvas in the page was lost while on screen, and the game didn't lose it itself with `WEBGL_lose_context`) and **stopped_responding_count** (the game's frame stopped answering for 15 seconds while on screen: frozen or crashed). - **median_peak_memory_size_bytes:** the most memory a play used by the time it was first reported, usually its first minute: the JavaScript heap where the browser tells it (Chrome and Edge) plus WebAssembly memory. `null` when no browser told it. Plays are measured with the same Cloudflare check as counted plays, so faked ones can't skew them: a play's numbers come only with its check's ticket, its load time and crash count once, and it can't report more play than it has been open. Plays through tester and preview links and your own aren't measured. Numbers are kept as totals a day per version and device group, never per play or player. ### Export everything | Call | What it does | | --- | --- | | `GET /games/:slug/export` | What an export of the whole game holds, in `export`: `download_url`, `command`, `version_count`, `withheld_version_count`, `image_count`, `withheld_image_count`, `shader_count`, `save_count` and `files_size_bytes`. | | `GET /games/:slug/export/download` | The export itself: a .zip (`application/zip`), made as it downloads. | Everything about a game as one .zip, to keep, to move, or to run on your own server. Three ways in, one file: `export_game` answers `download_url`, a link your AI hands you that opens in your browser when you're signed in to Zaisma and for no one else (it doesn't expire); the game's dashboard has an Export everything button on its Details tab; and `npx @zaisma/cli export ` saves it as a folder (The upload command, below). The key needs read access to the game, versions, stats, database and saves (`key_not_allowed` otherwise; a read key has it all). An account starts up to 2 exports a minute (`slow_down`). Each export is a line in the game's history ("Exported everything about the game"), with who made it and from where. In the .zip: - `README.txt`: what's where. - `game.json`: the game (as `GET /games/:slug` answers it), its `images` (each with `file_path`, or `null` when it hasn't passed review), its `shaders` (each with `file_path`, or `null` when it hasn't passed its check, and what every pass's channels read), `testers`, and `secrets`: their names and when each was set, never their values. - `versions.json`: every version Zaisma keeps, with its patch notes, review status and findings, as `GET /games/:slug` answers them without the preview links; `folder_path` is where its files are, or `null` for a version that's still being scanned, held or rejected. Those carry no files, so nothing unscanned or held leaves through an export. - `versions//…`: each version's files, as they were uploaded. - `images/-.png` (or `.jpg`, `.webp`): the cover, square cover and gallery pictures that passed review. - `clip/clip.mp4` and `clip/still.jpg`: the clip its links play and its still, when it has one. - `shaders/-.glsl`: each shader that passed its check, with its buffer passes beside it as `-.buffer-a.glsl` to `.buffer-d.glsl`. - `database.sql`: the game database as SQLite's SQL dump, the same text `export_database` answers part by part. `zaisma export` also makes it `database.sqlite`, the file the Node runner takes as `--database-file`. - `saves.jsonl`: every player's cloud save, one JSON object a line, as `get_save` answers it (`player_id`, `sha256`, `size_bytes`, `saved_at`, `changed_by_kind`, `save_copy_count`, `version_id`, `local_storage_items`, `indexeddb_databases`). Earlier copies of saves stay out. - `stats.json`, `reports.json`, `history.json`: as `get_stats` (90 days), `get_reports` and `get_history` answer them. Account-wide things (webhooks, sign-in apps, API keys) aren't in it: they belong to the account, not the game. The files are stored as they are, not compressed, and zip64 records go in where a game needs them, so every unzip tool opens it. ## Hosting and credit Everything a game runs on Zaisma's servers is on one meter per game, shown as a percentage of its free hosting for the month, never in dollars: its rooms, its game server, data Zaisma's relay sends its players, voice, its database, and requests, webhook events and schedule runs to its game server. Every game gets the same free hosting each calendar month (UTC), with no card: 8 friends playing a real-time game 2 hours every night use about a third of it; it covers about 1,300 player-hours of an 8-player real-time game at 60 ticks a second (over 300 players playing 4 hours a month), or about 2,500 player-hours of a 4-player turn-based game. A demo or a test never uses up another game's month. Free on purpose, for every game and off the meter: game files (downloads and storage, so a game never stops loading), cloud saves, accounts and sign-in, publishing and its reviews, spectators, and anything on your own servers (rooms, a relay, an API). `hosting_use_this_month`, in `GET /games/:slug/stats` and `GET /games/:slug/database`: - `free_used_pct`: how much of the month's free hosting is used, 0 to 100. `resets_on_date` is when it starts again. - `shares`: what used it, each `{"kind", "share_pct"}` adding to 100, biggest first: `rooms`, `game_server`, `relayed_data`, `voice` (voice Cloudflare's media server sent your players, `room.voice`), `database`, `requests`, `page_previews` (Chrome drawing your AI's preview pictures, `preview_game_page`). `[]` before any use. - `second_free_allowance_month_start_date`: the month the game had its second free allowance, the first time it filled its free hosting, or `null` until then. It comes once; that month `free_used_pct` counts both. - `is_paused`, `paused_reason` (`free_used`, `budget_used`, `credit_used`, `no_real_players`, `free_hosting_ended` or `null`) and `paused_at`. - `free_rooms_stopped_at`: when Zaisma's free room time for the month ran out across all games, for a game with no budget with credit; `null` otherwise. See the stop below. - `monthly_budget_cents` and `spent_from_credit_cents`: the game's budget and what credit paid for it this month. - **Where the hours went:** `play_hours`, this month's totals, never who: `total_duration_hours`, of it `new_player_duration_hours` and `returning_player_duration_hours`, and of it again `rented_network_duration_hours` and `other_network_duration_hours`, with `rented_share_used_pct`. - **Real players go last:** traffic from rented-server networks has its own share of 10% of the game's free hosting and of its budget, counting only its own use, and everyone else plays from the rest, with no extra free time and no gap in the meter. On that share: anyone on a rented-server network without history, and anyone at all whose browser shows no input and no graphics chip. An account a week old, or that played before or bought something, and a browser that played this game before, play from the rest on any network. Past it those players get `rented_share_used` from rooms, requests and the relay, and in a match they get an hour; everyone else plays on. A game on its own server isn't on the meter, and never hears any of it. - The counts behind it: `room_awake_duration_hours`, `room_connection_count`, `inbound_message_count`, `relayed_size_bytes`, `voice_size_bytes`, `game_server_cpu_duration_sec` (of it `startup_cpu_duration_sec`), `game_server_session_count`, `game_server_invocation_count` (calls into it as Cloudflare counts them: a real-time room's ticks, up to 30 to a call, each message, join, request, schedule run, webhook event and start; the stats' `call_count` is only its rooms' calls, for its health), `loaded_version_count`, `outside_call_count`, `log_file_count`, `request_count`, `awake_duration_hours`, `database_call_count`, `written_row_count`, `read_row_count`, `bookkeeping_written_row_count` and `database_size_bytes`; and `room_play_duration_hours`, player time in rooms, a fact for tuning that isn't priced. **A second free allowance, once.** The first time a game with real players fills its free hosting, it gets a second allowance free that month, so it doesn't stop before you can react: `second_free_allowance_started` tells you. A game with no real players doesn't get it yet, and doesn't lose it. A game with a budget isn't charged for it. From the next month it has one allowance again. **Real players** are browsers with a counted play this month (a minute on screen from a browser Cloudflare checked, not your own), off cloud networks. Tester-link plays from checked browsers count here too, and never in your stats. A game needs at least 2, and more as it uses more: 8 friends clear it, and a full allowance takes about 17. **Past the free hosting.** A game without a budget pauses at 100%. A game with one (`monthly_budget_cents` on `PATCH /games/:slug`, in cents: 5000 is $50) draws from your credit past it, never more than its budget in a month, at these prices: - **Rooms:** $23.04 per 1,000 hours a room is awake (a ticking room all the while it ticks; a turn-based room for 10 seconds after each event, a move or its check on its players every 30 seconds, and asleep in between), $0.03 per million messages players send, $1.80 per million times a player connects, $0.60 per million times a room wakes on its own or is called by another of the game's rooms, and the rows Zaisma writes for it (its listing, saves and seats) at the database's price. - **Game server calls:** $1.20 per million calls into it: each message, join, request, schedule run, webhook event and start, and a real-time room's ticks, up to 30 to a call. A room at 10 ticks a second makes about $0.002 an hour of them, at 60 about $0.01, so tick only as fast as the game needs (`ticksPerSec`). - **Game server:** $0.08 per 1,000 CPU-seconds wherever it runs (rooms, requests, schedule runs and webhooks), starting up included, counting only the time your code runs: its waits on the database, other servers (including reading their answers) and its own timers don't count, calls made at the same moment count only their own time, and each call it makes to another server counts 1 ms; $1.20 per million times it's started (a room starting it, a restart after a failure, its requests' object waking); $0.008 for each version loaded on a day (UTC); $18 per million files of its logs. A running room's ticks and messages to it cost only their CPU. - **Relayed data:** $0.20 per GB. - **Database:** $0.60 per million calls, $4 per million rows written, $0.004 per million read, $0.80 per GB-month stored, and $23.04 per 1,000 hours awake. - **Requests:** $1.80 per million game server requests, a schedule's run or a webhook event counting as one, and $23.04 per 1,000 hours its object is awake for them. Only this part shows in dollars. You hear at 80% of a game's budget (`hosting_budget_nearly_used`) and when it's used, by email and in its alerts and webhooks, again for a raised budget; at 80% of the free hosting for a game without a budget, or with one and no credit to spend (`hosting_nearly_paused`). When one run of the meter takes a game straight past a heads-up to its pause, you get both. **The pause** (`hosting_paused`, with why): no new rooms, connections between players through the relay, or game server requests and schedule runs start until the month resets, the budget is raised or credit comes in. Matches already running get an hour from the pause to finish, every room of the game ending together; the game server's `onEnding` and each player's `ending` event say when (`room.endsAt`). If the pause lifts within that hour, running matches hear the end is called off (`onEndingCancelled`, the `endingCancelled` event, `room.endsAt` back to `null`) within about 5 minutes and take new players again. The game database keeps reading and writing for that hour, so a match's last save lands, then answers `hosting_paused`; exports and erasing a player always work. A pause can come up to 5 minutes after the line is crossed, and what a game uses past its budget or your balance, its finishing hour included, is written off: never charged later. So is what a game without a budget used past its free hosting: a budget you give it later pays only from then on. **When free hosting runs short,** games with real players go last. Games with no real players, on any account, share part of Zaisma's free hosting each month. When it's gone, each pauses (`hosting_paused`, reason `no_real_players`) until it has real players or the month resets. **The stop on free rooms** (`free_rooms_stopped`): Zaisma's free room time is limited each month across all games. When it runs out, a game with no budget, or with a budget and no credit to spend, starts no new rooms or connections between players through the relay until the month resets. Players hear `hosting_paused`, and matches already running get an hour to finish, as in a pause. Its database and game server requests go on, up to its own free hosting, until free hosting ends for the month (`hosting_paused`, reason `free_hosting_ended`). A game with a budget and credit isn't touched, and giving a game both lifts the stop for it at once. Rooms on your own server are never limited. **Credit** is one balance for all your games, in cents, never below zero. You buy it on Stripe's page ($10 buys $10, from $10 to $1,000 a top-up), and Stripe sells it as the merchant of record, handling sales tax and VAT. It never expires and is never paid out; it pays only for Zaisma's services. What's unspent of a top-up refunds to its card for 30 days, on request, and after that stays yours to spend but doesn't refund; credit is spent oldest first, so the newest top-ups hold the balance. Credit only comes in through Stripe: a top-up you pay on Stripe's page, or the monthly credit plan you start there once. You hear when your credit falls under 20% of what there was right after your last top-up (`is_credit_low`, the `credit_low` alert and an email) and when it runs out. Deleting your account refunds what still refunds (credit inside its 30 days; the delete box names any older credit that won't come back), even when Stripe is down at that moment: the refund goes through once it's back. **The monthly credit plan** keeps credit from running dry: on the 1st of every month (UTC), the day the free hosting resets, your credit goes back to a level you pick, from $10 to $10,000. You start it once on Stripe's page, and Stripe sells every payment as it sells a top-up, with sales tax or VAT on top. The first payment fills credit to the level (at most $1,000: a higher level fills to it from the next 1st). Each 1st pays only what brings the balance back to the level: a quiet month costs what your games spent, and a month with a balance at or over the level, or under $1 short of it, pays nothing. Each payment is a top-up like any other, refundable for 30 days. A declined card shows as `payment_failing` while Stripe tries again over the next days; you hear by email when it's declined and when Stripe gives up, and the plan ends then. One plan at a time, apart from Pro. Stopping it is at once: it holds no prepaid month, and credit already bought stays. Deleting your account stops it first. **Spending needs you.** Your AI can read all of it, start a top-up or the monthly credit plan (you pay on Stripe's page), refund a top-up, turn a game's budget off or down, and lower or stop the plan. A first or higher budget, and a higher plan level, need your passkey on zaisma.com: through a key it answers `confirmation_needed` (403) with `confirm_url` and `spending_request_id`: Zaisma keeps the exact change, and `confirm_url` opens a sheet on Developer settings naming it ("Starfall's monthly budget, none → $40") with Approve (a passkey tap) and Decline. Only you can approve, for your account alone, and a request expires after a day. `GET /spending-requests/:spending_request_id` shows `request_status` (`waiting`, `approved`, `declined` or `expired`), the change asked for and what it is now. These calls need `credit_access` (see What a key can do). | Call | What it does | | --- | --- | | `GET /spending-requests/:spending_request_id` | A raise in spending you asked for: `{"spending_request": {"id", "request_kind" (`game_budget` or `credit_plan_refill_level`), "game_slug", "game_title", "requested_change", "current_setting", "request_status", "created_at", "expires_at", "answered_at"}}`. `requested_change` and `current_setting` are `{"monthly_budget_cents"}` for a game's budget and `{"refill_level_cents"}` for the plan's level, whose `game_slug` and `game_title` are `null`. Another account's, or an unknown one, answers `no_spending_request` (404). Needs `credit_access` `read`. | | `GET /credit` | Your credit: `{"credit": {"balance_cents", "is_credit_low", "credit_plan", "top_ups", "games", "entries", "waiting_spending_requests"}}`. `waiting_spending_requests`: each raise in spending waiting for your answer, as `GET /spending-requests/:spending_request_id` answers it, oldest first. `credit_plan`: `null` with no plan, else `{"refill_level_cents", "plan_status", "next_payment_at", "next_payment_cents", "started_at"}`: `plan_status` is `running` or `payment_failing` (the card was declined and Stripe is trying again); `next_payment_at` is the next 1st, 00:00 UTC; `next_payment_cents` is what it pays at today's balance, before tax (0 under $1 or at or over the level). `top_ups`: the last 30 days', newest first, each `{"id", "amount_cents", "refundable_cents", "refund_ends_at", "created_at"}` (IDs `top_up_…`). `games`: games with a budget or spending this month, each `{"slug", "title", "monthly_budget_cents", "spent_from_credit_this_month_cents", "last_month_beyond_free_cents"}` (`last_month_beyond_free_cents`: what last month's use past the free allowance would have cost at today's prices, 0 when it stayed inside). `is_credit_low`: the balance is under 20% of what there was right after the last top-up. `entries`: the last 90 days, newest first, each `{"id", "entry_kind", "amount_cents", "game_slug", "created_at"}`: `top_up` (adds), `hosting_charge` (one per game per day, negative), `refund` (negative) or `written_off` (what Zaisma took on; it never touched the balance). Needs `credit_access` `read`. | | `POST /credit/top-ups` | Start a top-up: `{"amount_cents"}`, 1000 ($10) to 100000 ($1,000); anything else answers `bad_top_up_amount`, and an account with no passkey and no email answers `account_not_protected` (credit stays with the account: add a passkey or an email on zaisma.com/account first). In an account's first 7 days, top-ups and buys together stay under USD 100 (`new_payer_limit`). Answers `checkout_url`, Stripe's page where only you can pay, `expires_at` and `next_steps` (`get_credit` once you've paid). Paying adds the credit within seconds, and games paused for credit start again. Up to 10 top-ups and refunds a minute. | | `POST /credit/refunds` | Refund what's unspent of one top-up to its card: `{"top_up_id"}`. Answers `refunded_cents` and `next_steps`. `top_up_not_refundable` when it's spent, refunded or over 30 days old; `no_top_up` when it isn't yours. | | `POST /credit/plan/checkout` | Start the monthly credit plan: `{"refill_level_cents"}`, 1000 ($10) to 1000000 ($10,000); anything else answers `bad_refill_level_cents`. `already_credit_plan` (409) while one runs; `account_not_protected` and `new_payer_limit` as for a top-up, on its first payment. Answers `checkout_url`, Stripe's page where only you can pay, `expires_at` and `next_steps` (`get_credit` once you've paid). Shares the 10 a minute with top-ups and refunds. | | `PATCH /credit/plan` | Set the plan's level: `{"refill_level_cents"}`, as above. Lower or the same applies at once; higher answers `confirmation_needed` with `spending_request_id`. Answers the `credit` as `GET /credit` does, and `next_steps`. `no_credit_plan` (409) with none. | | `POST /credit/plan/stop` | Stop the plan at once; credit stays. Answers the `credit` and `next_steps`. `no_credit_plan` (409) with none. | | `PATCH /games/:slug` with `monthly_budget_cents` | A game's monthly budget: whole cents of at least 100, or `null` for no paid hosting (it pauses at its free hosting). `null` or lower works with a key that has `credit_access` `write`; a first or higher budget answers `confirmation_needed`. A budget under what credit already paid this month pauses the game at once; a higher one starts a game paused on its budget again. | ## Zaisma Pro Zaisma Pro is $10 a month on your card, apart from hosting credit, for developers with a lot to store. It raises these limits (hosting stays on the meter and credit; Pro changes nothing inside games): | | Free | Pro | | --- | --- | --- | | Storage | 10 GB, or 50 GB once established or paid by card | 500 GB | | New data a day | 10 GB, or 25 GB once established or paid by card | 100 GB | | Performance checks a day | 20 | 60 | Versions a day are the same on every plan: 100 a game, and publishing has no limit. Stats and scheduled releases are free for everyone. Seats come with Teams and custom domains with Custom game domains, so neither is part of Pro. You can cancel any time and keep Pro to the end of the paid month, with no refunds for part of a month; then the free limits come back. Your first payment refunds within 14 days of it (`POST /pro/refund`), and Pro ends then: only the account's first Pro payment, while it's the only one, so starting Pro again after a refund doesn't refund again. A live version over 2 GB stays live, and only new uploads must fit. Pro ends at the end of the period Stripe says is paid, so a renewal Stripe retries keeps it until Stripe says it's over. Stripe sells it as the merchant of record, as it does credit. Teen developers buy Pro like anyone; whoever owns the card pays. These calls need `credit_access` (`read` for `GET /pro`, `write` for the rest); `GET /access` answers `plan` (`free` or `pro`). | Call | What it does | | --- | --- | | `GET /pro` | Your plan: `{"pro": {"plan", "pro_ends_at", "is_pro_cancelled", "monthly_price_cents", "limits": {"free": {...}, "pro": {...}}, "limits_for_everyone": {"maximum_version_count"}, "used_today": {"performance_check_count"}}}`. `plan` is `free` or `pro`; `pro_ends_at` is when Pro ends or renews (`null` on free); `is_pro_cancelled` says it ends there instead of renewing; `refund_ends_at` is until when `POST /pro/refund` refunds the first payment (14 days after it, while it's the only one), `null` after that, on free, or when Stripe didn't answer within 3 seconds. Each plan's limits are `{"maximum_performance_check_count", "included_size_bytes", "maximum_new_data_size_bytes"}`. | | `POST /pro/checkout` | Start Pro. Answers `checkout_url`, Stripe's page where only you can pay, `expires_at` and `next_steps` (`get_pro` once you've paid). `already_pro` (409) while Stripe holds your Pro subscription, cancelled or not (`resume_pro` takes cancelling back). Up to 10 starts, cancels, resumes and refunds a minute. | | `POST /pro/cancel` | Cancel at the end of the paid month. Answers the `pro` as `GET /pro` does, and `next_steps`. `not_pro` (409) when you have no Pro or it's already cancelled. | | `POST /pro/resume` | Take cancelling back before it ends. Answers the `pro` as `GET /pro` does. `not_pro` (409) when you have no Pro or it isn't cancelled. | | `POST /pro/refund` | Refund the first payment in full, within 14 days of it, and end Pro now. Answers `refunded_cents` and `next_steps` (`get_pro`). `pro_not_refundable` (409) when you have no Pro, it's past 14 days, or it isn't the account's only Pro payment. | ## Storage A game can be any size. What's limited is what an account stores and how much new data it sends in a day: | | Stored | New data a day | | --- | --- | --- | | A new account | 10 GB | 10 GB | | Established (see Standing), or paid by card | 50 GB | 25 GB | | Zaisma Pro | 500 GB | 100 GB | Everything stored counts, drafts and old versions too; a file shared between versions counts once, and a file you already store doesn't count as new data. Files sent that never become a version count toward the day, and toward what's stored until a day after your last upload. A game too big for one day's new data goes up over several: what's sent stays, and the upload command sends only the rest. An account over its limit keeps its live versions. New uploads must fit: `storage_full` says what to delete. **When nothing pays for what's past the limit,** because Pro ended or credit ran out, a 14-day clock starts. A renewal Stripe is still trying, and the wait after a ruling, don't start it. You hear by email when it starts and 3 days before the end, and `unpaid_files_delete_at` on `GET /storage` says when. At the end, Zaisma deletes files no version uses, then drafts, then the oldest versions, until the account fits. Live versions stay, and so do versions set to publish, picked by a tester link or kept for a person at Zaisma. Setting a budget with credit, starting Pro or deleting enough yourself stops the clock. **Past what's included,** set a monthly storage budget. Storage then draws from your credit at 12¢ per GB a month, charged a day at a time on what's past what's included, up to the budget and the balance. Credit and budget set how far past it you can go: $10 of both buys room for about 83 GB. If credit runs out, uploads stop fitting and the 14-day clock starts. Stored files never use a game's free hosting. | Call | What it does | | --- | --- | | `GET /storage` | `{"storage": {"stored_size_bytes", "included_size_bytes", "maximum_stored_size_bytes", "allowance_kind", "new_data_today_size_bytes", "maximum_new_data_size_bytes", "monthly_storage_budget_cents", "unpaid_files_delete_at", "spent_this_month_cents", "price_per_gigabyte_month_cents", "deletable_versions"}}`. `allowance_kind` is `new`, `established`, `paid_by_card` or `pro`. `deletable_versions` is the biggest 20 versions that can be deleted now, each `{"game_slug", "version_id", "size_bytes", "created_at"}`; a key limited to some games sees only those. Any key. | | `PATCH /storage` | `{"monthly_storage_budget_cents"}`: whole cents from 100 to 1,000,000, or `null` for none. A first or higher budget answers `confirmation_needed`, where the developer approves with a passkey tap; off or lower works at once. Answers the `storage` and `next_steps`. Needs `credit_access` write. | | `DELETE /games/:slug/versions/:version_id` | Deletes one version for good, and the files no other version has stop counting at once. `version_in_use` (409) for one that's live, set to publish or picked by a tester link; `still_scanning` (409) while it's scanned; `kept_for_review` (403) for one a person at Zaisma must keep. Answers `is_deleted`, the `storage` and `next_steps`. Needs `version_access` publish. | | `DELETE /games/:slug` | Deletes a whole game: `{"confirm_slug"}`, the game's slug again, or `bad_confirm_slug`. It stops at once for every player and is erased a week later, with its versions, database, saves and purchases, and its link is never used again; until then it stays the developer's and counts toward what they store. A game other people played answers `confirmation_needed` (403) with `confirm_url` and `game_deletion_request_id`, and nothing changes until the developer approves there with a passkey tap. `kept_for_review` (403) for a game a person at Zaisma must keep; `still_scanning` (409) while a version is scanned. Answers `is_deleted`, `erases_at`, the `storage` and `next_steps`. Needs `game_access` write. | | `POST /games/:slug/bring-back` | Brings a deleted game back until its `erases_at`, as it was before. `not_waiting_to_erase` (409) for a game that isn't deleted; `already_erasing` (409) once its week is over; `game_removed` (403) when Zaisma took it down since. Answers `is_brought_back` and `next_steps`. Needs `game_access` write. | | `POST /games/:slug/erase-now` | Erases a waiting game nobody but its developer ever played, without waiting: `{"confirm_slug"}`. It always answers `confirmation_needed` first, for the developer's passkey tap. `played_by_others` (409) for a game other people played. Answers `erases_at` and `next_steps`. Needs `game_access` write. | | `GET /games/:slug/deletion-requests/:game_deletion_request_id` | The developer's answer to a deletion: `game_deletion_request` with `request_kind`, `game_slug`, `game_title`, `player_with_save_count`, `purchase_count`, `is_asked_from_dashboard`, `request_status` (`waiting`, `approved`, `declined`, or `expired` after a day), `created_at`, `expires_at` and `answered_at`. `no_game_deletion_request` (404) for one this game doesn't have. Needs `game_access` read. | ## Players A signed-in player plays as their Zaisma account in every game, with the same player ID (`player_…`) everywhere; anyone else is a guest with a new ID for each pass. Your game sees the ID in `room.players`, in `Zaisma.player.getPass()` and as the `sub` of the player pass your own server checks, with `kind` saying `account` or `guest`. Your server checks a pass with `verifyPass(pass, keys, { gameSlug })` from `@zaisma/game-server` (your game's own keys at `https://rooms.zaisma.com/v1/pass-keys/`: every game's passes are signed with a key of its own, so a pass for another game never checks out against them; the list holds more than one so the next key is out ahead of signing anything: pick by the token's `kid`, as `verifyPass` does, and never pin one; `issuerUrl` defaults to `https://rooms.zaisma.com`): a JWT with header `typ` `pass+jwt` and claim `pass_version_number` `1`, refused with a `PassError` whose `code` is `malformed`, `unknown_key` (fetch the keys again), `bad_signature`, `expired`, `wrong_game`, `wrong_issuer`, `wrong_kind` (a receipt, or another JWT) or `wrong_version`. `kind`, `who_reads_my_chat` and `who_can_chat` may gain values, so treat one you don't know as a guest and as `nobody`. An account's pass says how its chat reaches (`who_reads_my_chat`, `chat_reading_enabled`, its age band's opaque `chat_group_id`, its sealed `network_seal`, and v1's `who_can_chat` as a stricter stand-in), its own opaque `player_tag_id` and its friends' and blocks' tags (`friend_player_tag_ids`, `block_player_tag_ids`), all different in every game. It also says who hears it talk (`who_hears_my_voice`, the same choices, `nobody` while its chat is stopped) and whether it hears others (`voice_hearing_enabled`): see Voice. Zaisma never tells a game anyone's age; a game could guess which chat group is the younger one from its size. | Call | What it does | | --- | --- | | `GET /players/:player_id` | An account's public profile, exactly what a stranger sees on zaisma.com/@username, never its email, age or other games' data: `{"player": {"id", "name", "username", "display_name", "bio", "link_urls", "profile_url", "is_profile_private", "published_games", "played_games", "playing_now"}}`. `name` is the name to show in games: the username, so nobody can pass as someone else. `username` is unique ignoring case and can change, so key your data by `id`. `display_name` and `bio` are what the player wrote, once Zaisma checked it (`null` when none). `link_urls` are links an adult chose to show. When `is_profile_private` is `true` (they show their profile to friends only), `bio` is `null` and the lists of links and played games are `[]`. `published_games` are the games they made that anyone can find, and `played_games` what they played lately when they show it to anyone, each with a `played_period` (`today`, `this_week`, `this_month`, `earlier`), never a time. `playing_now` is the game they're playing right now when they show that to anyone (`{ slug, title, page_url }`), else `null`, as for a game that isn't out yet. A guest's ID, or a deleted account's, is `no_player`. | A player sits in one of your game's rooms at a time, as on Steam: joining another room closes their seat in the first (the room's players are told "Joined from somewhere else" with close code `4001`, and `onLeave` runs with reason `"left"`). Moves between your rooms (`room.moveTo`, `room.reserve`) and watching never close a seat. A game that keeps players in several rooms at once, like a hangout hub beside its matches, sets `maximumRoomCountPerPlayer` (an integer from 1 to 10, 1 by default; a join past it closes the oldest seat). `playing_now_player_count` (on `GET /games/:slug`) and the game page's playing count count each player once, however many rooms they sit in. Games and servers get the same with no key at `GET https://rooms.zaisma.com/v1/players/` (open to any site, up to 300 a minute per address, answers cacheable for 5 minutes), and in games with `Zaisma.player.getProfile(playerId)`. A player pass proves only who the player is: an account's carries no name, so your server looks the name up there (the Node game server does it for you). It also says how an account's chat reaches, never its age: `who_reads_my_chat` (`friends`, `my_age_band` or `everyone`: the player's own choice; `nobody` while their chat is stopped), `chat_reading_enabled` (whether they read others' chat), an opaque `chat_group_id` (`chat_group_…`, their age band's, different in every game: only `everyone` crosses it), `network_seal` (their network, sealed for Zaisma's witness rule alone and different in every pass) and `who_can_chat`, v1's setting, still sent as a stricter stand-in for servers that don't read `who_reads_my_chat`; and its friends and blocks as opaque tags, never their player IDs: `player_tag_id` (its own, different in every game), `friend_player_tag_ids` (its friends', up to 200) and `block_player_tag_ids` (accounts it has a block with, either way, up to 100). Your server asks `passesAreFriends(first, second)`, `passesHaveBlockBetween(first, second)` and `canChat(first, second)` from `@zaisma/game-server` with two checked passes, before passing chat between them. Inside games, `Zaisma.friends.list()` gives a signed-in player their friends playing this game, with their rooms, and `Zaisma.friends.sendRequest(playerId)` offers a friend request that Zaisma asks the player about first, answering `{ status }`: `sent`, `cancelled`, `already_friends` or `not_taking_requests` (see "Friends in your game" in the README). A game never sees a request; two players who become friends get each other's tags in their next passes. In games, `Zaisma.player.getPass()` gives this tab's player and their pass (`{ id, name, kind, pass, expiresAt }`) to send to your own server. `Zaisma.invite(room)` opens Zaisma's invite sheet on the game page (the room's QR code, link and code), or on your own site the share sheet or a copied link; it works only right after the player taps or presses a key in the game, so call it from that tap's handler, and it fails with `error.code` `"needs_player_tap"` otherwise. It answers `"opened"`, or `"failed"` when the page couldn't open it; on your own site `"shared"` from the share sheet, `"copied"` the link, `"cancelled"` the share sheet, or `"failed"` (`InviteStatus`; treat a value you don't know as `"failed"`). A game that shows its own player list reads its room's players and draws it, with `room.mute`, `room.unmute`, `room.block` and `room.report` behind its own buttons; the guide keeps its own list for every game, and no call opens it. On touch screens the Zaisma button stays in the top right corner over your game and takes presses there, so keep that corner free of your own buttons on phones and tablets. The reference is `packages/sdk/zaisma.d.ts`, served beside the SDK as `_zaisma/v1.d.ts`. ### Chat Players type to each other through Zaisma's chat hosting: one call in the game, `room.chat(text)`, sends a message through the room it's in, on Zaisma's rooms or your own server's runner (`zaisma-game-server`). Your game draws the chat box and moderates it; Zaisma decides who may read each message, checks it on its way and keeps none of it. Safety comes from who reads it, not from filtering words: every player 13 and up reads a room's chat by default, across age bands, so every lobby is full of witnesses, and anyone under 18 types only where others read it. - **Who reads it:** each player chooses who reads what they type: Friends (friends their age), My age band or Everyone (the only choice that reaches other age bands); 13 to 15 start on Friends, 16 to 17 on My age band, adults on Everyone. A message reaches the players that choice takes in who read chat (on unless they turned it off), with no block either way. Guests don't chat (`room.canChat` is `false`: hide your box and offer preset phrases or emotes), and spectators neither send nor read chat. `room.chat` resolves `{ sentAt }` even when nobody could read it, so the sender is never told who can't. - **The witness rule:** a message an under-18 account sends or reads goes only where at least two independent players read it: signed-in accounts that have played a while (a week old, with plays on two days), on networks unlike the sender's and each other's. Whispers (`toPlayerIds`), two-player rooms and friends included: there is no exception. From an under-18 it's otherwise stopped (`chat_stopped`, `not_allowed_to_chat`). From an adult in Zaisma's rooms it goes on to the adults only, and the sender hears it went, so a duo never tells them the other player is under 18. Your game's own whispers or duos built on game messages must carry no typed chat to or from an under-18 either: only `room.chat` passes through Zaisma, and the same rule holds for what doesn't. - **In the game:** `room.chat(text, { toPlayerIds })` (all players when `toPlayerIds` is left out, up to 2000 characters, up to 20 messages in 10 seconds) resolves once it went, or rejects with `error.code` `chat_stopped` (`error.reason` says why and `error.message` is what to show the player), `chat_not_allowed`, `chat_empty`, `chat_too_long` or `chat_too_fast`. `room.on("chat", ({ fromPlayerId, text, hasSwearing, hasSlur, sentAt }) => …)` brings the others' messages; messages from players this player muted or blocked never come. Show the player's own line when `room.chat` resolves. - **Your game server decides first:** `onChat(state, player, room, { text, toPlayerIds })` runs before Zaisma's filter, in both runtimes, the way `canJoin` runs before a join: answer `true` to send it, `false` to stop it (the sender's `room.chat` fails with `chat_stopped`, reason `stopped_by_game`, "Your message wasn't sent."), or `{ toPlayerIds }` to send it to fewer players (a team chat, a player your moderators muted). It can only narrow: players outside what Zaisma allows are dropped. Only decide in it: `room` can be read, not changed. A game server without `onChat` sends every message on to the filter. - **The filter:** every message an under-18 account sends or reads is checked on Zaisma's side for one thing, and it never grows: contact details in any disguise (a run of 7 or more digits, numbers written as words or sent a few digits at a time, handles, links, "add me on…"), moving to another app or meeting up in real life. Everything else is your call: swearing, sexual words and slurs are flagged (`hasSwearing`, `hasSlur`) and let through, and what you don't want goes by your moderation and player reports. No AI decides anything in chat. The verdict is one for the whole message, never per receiver. - **Between adults** nothing is filtered, unless your game server sets `adultChatFilterEnabled: true`: then contact details are stopped between adults too, for free. - **Reports carry the lines:** on a Zaisma page, `room.report(playerId, reason, details)` opens Zaisma's report sheet beside the game, filled in, and resolves `{ isReported: true }` once the player sends it, or rejects with `error.code` `"report_not_sent"` when they close it without sending. The sheet asks the SDK for that player's last 20 lines on this screen, and the player ticks the ones to send. Only a report the player sends from Zaisma counts toward the steps a few trusted reports take at once (a mute in that room, a chat pause): a report a game sends by itself, off Zaisma or from its own server, still reaches Zaisma but never counts. `get_reports` and the `player_reported` webhook carry the reported player's own ticked lines as `chat_messages` (`from_player_id`, `text`, `sent_at`): what the reporter's game showed, not a record Zaisma kept. Reasons are `real_life_threat`, `personal_details`, `following_after_block`, `sexual`, `wrong_age` and `under_13` (Zaisma looks), and `harassment`, `cheating` and `other` (passed to you). A chat box to copy, all of it in the game (a `
`, an `` and a `