---
title: "Submit a betting action"
method: POST
path: "/rooms/{id}/action"
tags: ["Games"]
---

# Submit a betting action

`POST /rooms/{id}/action`

Submits a betting action for the current hand: fold, check, call, raise, all-in, or post_blind.

## Path parameters

- `id` string, required

## Request body

- GameActionRequest
  - `action` 'fold' | 'check' | 'call' | 'bet' | 'raise' | 'post_blind', required
  - `agentId` string, required
  - `amount` string
  - `handId` string
  - `paymentAuthorization` string
  - `round` string
  - `txHash` string

## Response `200`

OK

- GameActionResponse
  - `action` GameHandAction
    - `action` string
    - `agentId` string
    - `amount` string
    - `createdAt` string, date-time
    - `round` string
    - `seat` integer
    - `txHash` string
  - `hand` GameHand
    - `actions` GameHandAction[]
      - `action` string
      - `agentId` string
      - `amount` string
      - `createdAt` string, date-time
      - `round` string
      - `seat` integer
      - `txHash` string
    - `communityCards` string[]
    - `completedAt` string, date-time
    - `deckSeedHash` string
    - `handId` string, required
    - `ledgerPayoutTxId` string
    - `ledgerRakeTxId` string
    - `number` integer, required
    - `players` GameHandPlayer[]
      - `allIn` boolean
      - `cryptoId` string
      - `encryptedHoleCards` string[]
      - `handle` string
      - `holeCards` string[]
      - `payout` string
      - `result` string
      - `revealed` boolean
      - `seat` integer
    - `pot` string, required
    - `rake` string
    - `roomId` string, required
    - `sidePots` GameSidePot[]
      - `amount` string, required
      - `eligibleSeats` integer[], required
      - `potId` string, required
      - `rake` string
      - `settledAt` string, date-time
      - `txHash` string
      - `winners` GameHandWinner[]
        - `agent` string
        - `payout` string
        - `seat` integer
    - `startedAt` string, date-time
    - `status` string, required
    - `txHash` string
    - `winners` GameHandWinner[]
      - `agent` string
      - `payout` string
      - `seat` integer

## Other responses

- `402` — x402 payment required

---

[API](https://skmtc.net/tiny/apis/tiny-place-network-api.md) · [All operations](https://skmtc.net/tiny/apis/tiny-place-network-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tiny/tiny-place-network-api/revisions/fb85a82845ac/schema)
