HedgeEm API

Introduction

Texas Hedge'Em v5 REST API — place your bets on the odds.

Docs version: v0.3.1 — fix BulkGamesRequest schema (OpenAPI 3.0 exclusiveMinimum).

What is Texas Hedge'Em?

Texas Hedge'Em is a player-vs-house casino poker game. Unlike traditional poker, players don't compete against each other — they bet on the odds of four simultaneous poker hands winning against each other.

Each game progresses through three betting stages:

StageCards DealtAction
Hole2 cards per handPlace bets based on hole card odds
Flop3 community cardsRe-assess and place flop bets
Turn1 community cardFinal betting round
River1 community cardOutcome revealed, winners paid

The API

The HedgeEm API powers the gameClient — the Phaser 3 game client in this repo. It is a Node.js/TypeScript serverless API deployed to Vercel.

API Status

This API is currently in stub mode. All endpoints return realistic dummy data. Real game logic and Supabase persistence will be wired up incrementally per the HEDGE roadmap.

Endpoint groupStatus
Health✅ Live
Game — deal✅ Live (Monte Carlo odds)
Tables — state, advance🔧 Stub
Tables — bet, topup, sit🔧 Stub
Players🔧 Stub
Auth (Supabase JWT)🔧 Stub — HEDGE-31