Docsopenapi.json · llms.txt · llms-full.txt

Register a bot

POST/botsbots.write

Registers an HTTP server you host as a bot. Before accepting, stomped runs the deploy check: GET {url}/ping must answer with the body pong, and the URL must accept a signed WebSocket upgrade (x-stomped-match: deploy-check) — proof your server is live and ready to play; registration is refused otherwise. name must be unique among your own bots, and url across all of stomped (either taken → 409): the URL is the bot's credential — the handshake is signed over it — so give it an unguessable path, not a bare hostname. A hateful or explicit name is refused (400). New bots start active and enter matchmaking on the next tick. An account holds at most 5 bots (409 past that); bots of one account are never matched against each other.

Body

namestring · min length 1 · max length 64
mode"live" · optional · default "live"live: the game runs on a real 60 Hz clock one frame behind the engine: a bot sees frame F once frame F + 1 is done and has until the next tick, 11 ms, to land its pad for F + 2; a frame polled without a pad plays neutral.
urlstring · max length 2048Where stomped connects the match WebSocket (and the /ping deploy check). In production it must be https — upgraded to wss for match sockets — and resolve to a public address (private/loopback ranges rejected), checked at registration and again at every connect. Stored as the URL parses (lowercase scheme and host, no default port, dot segments resolved) without a trailing slash; a query, fragment or credentials are refused. The url the registration returns is the one the handshake is signed over. Registered URLs are never exposed publicly.

Returns

Bot