guestSign in

API Docs

Binary-2048 API v0.1.0

OpenAPI JSON source: /api/openapi

Docs hub: /docs | User guide: /docs/user | Developer guide: /docs/developer

/api/ads/reward
POSTGrant rewarded-ad inventory after server-side signature and anti-fraud checks
/api/auth/bridge-token
POSTMint auth-bridge bearer token from authenticated Auth.js session
/api/auth/dev-token
POSTDev-only auth bridge token minting helper (env-gated)
/api/auth/entitlements/proof
POSTMint short-lived entitlement proof from signed auth bridge token
/api/bots/tournament
POSTRun server-side AI-vs-AI tournament for configured seeds
/api/challenges/daily
GETGet Bitstorm Daily challenge and daily leaderboard window
/api/challenges/daily/submit
POSTSubmit replay for Bitstorm Daily leaderboard
/api/challenges/ghost-race
GETGet ghost race challenge (rollout bot replay on selected seed)
/api/challenges/ghost-race/submit
POSTSubmit replay for ghost race comparison
/api/games
POSTCreate a game session
/api/games/{id}
GETGet game state by id
/api/games/{id}/encoded
GETGet AI-friendly encoded state
/api/games/{id}/export
GETExport game JSON
/api/games/{id}/move
POSTApply one move
/api/games/{id}/replay
GETGet canonical replay payload (header + moves)
/api/games/{id}/undo
POSTUndo the last move
/api/games/import
POSTImport game JSON
/api/health
GETHealth check
/api/leaderboard
GETList ranked leaderboard entries
/api/leaderboard/submit
POSTSubmit finished ranked game to leaderboard (server-authoritative)
/api/marketing/events
GETList tracked marketing events
/api/marketing/track
POSTTrack marketing/share CTA events
/api/matches/{id}
GETGet async match details and standings
/api/matches/{id}/submit
POSTSubmit moves for async same-seed PvP match
/api/matches/same-seed
POSTCreate async same-seed PvP match
/api/openapi
GETOpenAPI spec document
/api/ops/telemetry
GETGet lightweight route telemetry and anomaly flags
/api/replay
POSTDeterministically reconstruct replay from export or replay payload
/api/replay/code
GETDecode shareable replay code back to compact replay payload
POSTCreate shareable replay code from replay payload
/api/replay/postmortem
POSTReplay postmortem analyzer for highest-cost moves
/api/replay/validate
POSTValidate replay payload compatibility and deterministic rerun
/api/runs/{id}
GETGet canonical persisted run record by id
/api/runs/{id}/replay
GETGet persisted compact replay payload for run id
/api/sim/run
POSTRun deterministic scenario
/api/simulate
POSTBatch simulation endpoint
/api/store/catalog
GETList active paid packet SKUs
/api/store/consume
POSTConsume inventory for subscriber and append ledger entry
/api/store/inventory
GETGet store inventory and recent ledger entries
POSTGrant inventory to subscriber
/api/store/purchase
POSTPurchase a paid packet SKU and grant inventory bundle
/api/subscriptions
GETList notification subscriptions for a subscriber
POSTCreate or update notification subscription
DELETEDelete notification subscription by id
/api/user/data
DELETEDelete authenticated user data package
/api/user/data/export
GETExport authenticated user data package
Binary 2048