Skip to content

Seated teams of a tournament

GET
/api/tournaments/{id}/lobby
curl --request GET \
--url https://foxleague.ai/api/tournaments/1/lobby

Returns every seated team ordered by seed, with its wallet, team name, badge, rating, recent form and the rating and formation of the squad it entered with. Recent form counts a tournament match once its broadcast ends.

Who: anyone.

Refusals:

  • Tournament not found: no tournament has this id.
id
required
integer format: int64

The tournament id.

Success or a refusal: read success (the refusals are in the description).

Media type application/json
object
code

A machine-readable reason next to error, set only where the caller must act differently. tx_pending: the payment was not refused but could not be verified yet; keep the transaction hash and confirm again with the same hash, never pay twice.

string | null
data

The answer. Present when success is true.

object
participants
required

The seated teams by seed.

Array<object>

One seated team as the lobby shows it.

object
badge

Team badge: an IPFS URI or an older inline image; null when the team has none. In a developer tournament: the path of the developer team’s logo; null when it has none.

string | null
dev_team_name

Developer tournament only: the name of the player’s verified developer team. null otherwise.

string | null
elo_rating
required

The player’s current rating.

integer format: int32
formation
required

Formation of the squad the team entered with; 4-4-2 when unknown.

string
id
required

Seat id; standings rows refer to it as participant_id.

integer format: int32
recent_form
required

Up to five latest results, newest first: W, D or L. A tournament match counts once its broadcast ends.

Array<string>
squad_ovr

The team’s OVR, one decimal: its best XI OVR, the average OVR of the strongest XI it can field from the cards it owns now (for every formation in Tactics the best card of each position for its slots, each card in its own position, the highest average kept; cards listed for sale count). The same number every page and the OVR range use. null when no card it owns fits a slot and in a developer tournament.

number | null format: double
squad_ovr_formation

The formation that best XI is built in, such as 4-3-3. null with squad_ovr.

string | null
team_name
required

The team name; Team #<user_id> when the player has no team.

string
user_id
required

User id of the player.

integer format: int32
wallet_address
required

Wallet of the player.

string
tournament_id
required

The tournament id.

integer format: int64
error

Why the request was refused, in plain words. Present when success is false.

string | null
success
required

true when the request did what it asked. false is a refusal: read error.

boolean
Example
{
"data": {
"participants": [
{
"badge": "ipfs://bafkreij7ufrdl3erbfqfoeqh5av2ricphkqdlmttns4lrwbqcab",
"dev_team_name": null,
"elo_rating": 1284,
"formation": "4-3-3",
"id": 2251,
"recent_form": [
"W",
"W",
"D",
"L",
"W"
],
"squad_ovr": 61.4,
"squad_ovr_formation": "4-3-3",
"team_name": "Harbor Foxes",
"user_id": 57,
"wallet_address": "erd15feryxhrdz9m6y09mr8wrerwzgj6f8ntxvhxyrdlm5aahn0t09nl4ujy86"
},
{
"badge": "ipfs://bafkrei6bs5e4rynnefjqxirhxo77zbka74ztj2wyuhvauvzhmas",
"dev_team_name": null,
"elo_rating": 1131,
"formation": "4-4-2",
"id": 2254,
"recent_form": [
"L",
"D"
],
"squad_ovr": 55.9,
"squad_ovr_formation": "4-4-2",
"team_name": "Riverside Rovers",
"user_id": 92,
"wallet_address": "erd1f7kfgpqxgmvdpsdj05s6grka6gfputqftf78r57xr0v3zxupyu5v3u70sv"
},
{
"badge": null,
"dev_team_name": null,
"elo_rating": 1000,
"formation": "4-4-2",
"id": 2257,
"recent_form": [],
"squad_ovr": 52,
"squad_ovr_formation": "5-3-2",
"team_name": "Team #104",
"user_id": 104,
"wallet_address": "erd1ug68eu5y0mydn8fhfsgawxel2w2me46vk59hp4aupc4jy8wx9s3zt3gmse"
}
],
"tournament_id": 412
},
"success": true
}

No valid session. The body is plain text: Missing Authorization header, Invalid Authorization format, Invalid session token or Session expired or invalid. Sign in again.

Media type text/plain
string
Example
Session expired or invalid