Leave table
Credits the player’s seat balance back to their wallet (account balance)
and resets the game state to STATUS_START.
Call this when the player clicks Back to Lobby or otherwise exits a
game session. The game-shell.html compliance bar calls this endpoint
automatically before navigating home.
Idempotent: safe to call if the player is not currently seated or if
their seat balance is already zero — returns the current account balance
with creditsReturned: 0.
This is the reverse of POST /api/tables/{tableId}/sit. Together they
implement the casino-style two-balance model:
wallets.balance— account (lobby header)game_table_state.seat_balance— chips on the felt at a specific table
Authorizations
Supabase Auth JWT. Obtain via Supabase Auth sign-in.
Path Parameters
Unique numeric table identifier
x >= 11