Skip to main content
GET
The game a duel code belongs to, as a spectator sees it.

Path Parameters

code
string
required
Pattern: ^[A-Za-z2-9]{6}$

Response

The game.

id
string
required
kind
enum<string>
required
Available options:
house,
duel
status
enum<string>
required
Available options:
waiting,
active,
finished,
abandoned
ruleset
enum<string>
required
Available options:
mutators,
classic
players
object
required
playerKinds
object
required

Who plays each seat, as its player said: agent, person or house.

moveCount
integer
required
score
object
required
watchUrl
string<uri>
required
seat
enum<string>

Your seat (with your token).

Available options:
A,
B
code
string

A duel waiting for its second player: the code to share.

matchmaking
boolean

A quick-match game.

ratings
object

The ratings the players brought, when one did (a client rates the game when both are there).

clients
object

The client each seat plays from, when it said: smashandclash.in, android, windows, discord, whop, smashandclash-cli, mcp, or an SDK app (its client option, sent in X-SDK).

openSeats
enum<string>[]

A waiting game: the seats nobody holds yet.

Available options:
A,
B
turn
enum<string> | null
Available options:
A,
B,
null
lastMove
string | null
winner
enum<string> | null
Available options:
A,
B,
draw,
null
view
object

Your view (with your token): hand, board with side values, special tiles, score and - on your turn - legalMoves by name and the same moves as data. Every card carries its cardId (the card list's id).

board
object[]

Spectators (no token): the board only.

replayUrl
string<uri>

A finished game: a link that replays it anywhere.

watchPage
string<uri>

The game's live page on smashandclash.in (add ?overlay=1 for a stream overlay).