Skip to content

Your current squad snapshot

GET
/api/tournaments/my-squad
curl --request GET \
--url https://foxleague.ai/api/tournaments/my-squad \
--header 'Authorization: Bearer <token>'

Returns your current squad in the form a tournament match takes at its strategy lock: formation, the eleven starters in order, the seven substitutes and each player’s details. data is null when the wallet has no player account or the team cannot field eleven starters and seven substitutes that it owns and has not listed for sale.

Who: a signed-in player.

Refusals: none specific to this route.

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
One of:
null
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": {
"formation": "4-3-3",
"lineup": [
1021,
1022,
1023,
1024,
1025,
1026,
1027,
1028,
1029,
1030,
1031
],
"players": [
{
"accuracy": 64,
"condition": 100,
"control": 70,
"country": 31,
"defense": 40,
"is_starter": true,
"level": 6,
"name": "Rufus Vale",
"nonce": 1021,
"portrait_uri": "ipfs://bafkreiportrait1021",
"position": "GK",
"power": 54,
"rarity": "Rare",
"speed": 62,
"stamina": 63,
"vision": 69
},
{
"accuracy": 74,
"condition": 90,
"control": 45,
"country": 25,
"defense": 42,
"is_starter": true,
"level": 9,
"name": "Milo Thorne",
"nonce": 1022,
"portrait_uri": "ipfs://bafkreiportrait1022",
"position": "DEF",
"power": 54,
"rarity": "Common",
"speed": 46,
"stamina": 66,
"vision": 69
},
{
"accuracy": 43,
"condition": 76,
"control": 48,
"country": 39,
"defense": 43,
"is_starter": true,
"level": 11,
"name": "Arlo Brask",
"nonce": 1023,
"portrait_uri": "ipfs://bafkreiportrait1023",
"position": "DEF",
"power": 61,
"rarity": "Uncommon",
"speed": 41,
"stamina": 54,
"vision": 57
},
{
"accuracy": 72,
"condition": 78,
"control": 68,
"country": 36,
"defense": 46,
"is_starter": true,
"level": 9,
"name": "Basil Halden",
"nonce": 1024,
"portrait_uri": "ipfs://bafkreiportrait1024",
"position": "DEF",
"power": 61,
"rarity": "Rare",
"speed": 53,
"stamina": 38,
"vision": 42
},
{
"accuracy": 57,
"condition": 70,
"control": 68,
"country": 26,
"defense": 44,
"is_starter": true,
"level": 3,
"name": "Cyrus Mercer",
"nonce": 1025,
"portrait_uri": "ipfs://bafkreiportrait1025",
"position": "DEF",
"power": 63,
"rarity": "Common",
"speed": 53,
"stamina": 43,
"vision": 47
},
{
"accuracy": 60,
"condition": 73,
"control": 67,
"country": 24,
"defense": 71,
"is_starter": true,
"level": 4,
"name": "Dorian Quill",
"nonce": 1026,
"portrait_uri": "ipfs://bafkreiportrait1026",
"position": "MID",
"power": 39,
"rarity": "Epic",
"speed": 54,
"stamina": 41,
"vision": 53
},
{
"accuracy": 43,
"condition": 88,
"control": 40,
"country": 31,
"defense": 69,
"is_starter": true,
"level": 12,
"name": "Emil Rowan",
"nonce": 1027,
"portrait_uri": "ipfs://bafkreiportrait1027",
"position": "MID",
"power": 54,
"rarity": "Uncommon",
"speed": 74,
"stamina": 47,
"vision": 38
},
{
"accuracy": 47,
"condition": 88,
"control": 42,
"country": 4,
"defense": 63,
"is_starter": true,
"level": 7,
"name": "Felix Stroud",
"nonce": 1028,
"portrait_uri": "ipfs://bafkreiportrait1028",
"position": "MID",
"power": 41,
"rarity": "Common",
"speed": 58,
"stamina": 44,
"vision": 72
},
{
"accuracy": 61,
"condition": 77,
"control": 50,
"country": 52,
"defense": 62,
"is_starter": true,
"level": 4,
"name": "Gideon Tavish",
"nonce": 1029,
"portrait_uri": "ipfs://bafkreiportrait1029",
"position": "MID",
"power": 46,
"rarity": "Rare",
"speed": 52,
"stamina": 43,
"vision": 40
},
{
"accuracy": 61,
"condition": 84,
"control": 49,
"country": 58,
"defense": 55,
"is_starter": true,
"level": 10,
"name": "Hugo Ulric",
"nonce": 1030,
"portrait_uri": "ipfs://bafkreiportrait1030",
"position": "FWD",
"power": 46,
"rarity": "Legendary",
"speed": 67,
"stamina": 59,
"vision": 38
},
{
"accuracy": 40,
"condition": 96,
"control": 74,
"country": 32,
"defense": 65,
"is_starter": true,
"level": 9,
"name": "Ivo Voss",
"nonce": 1031,
"portrait_uri": "ipfs://bafkreiportrait1031",
"position": "FWD",
"power": 68,
"rarity": "Uncommon",
"speed": 74,
"stamina": 51,
"vision": 38
},
{
"accuracy": 73,
"condition": 85,
"control": 70,
"country": 41,
"defense": 67,
"is_starter": false,
"level": 10,
"name": "Jasper Wren",
"nonce": 1032,
"portrait_uri": "ipfs://bafkreiportrait1032",
"position": "GK",
"power": 66,
"rarity": "Common",
"speed": 66,
"stamina": 49,
"vision": 50
},
{
"accuracy": 55,
"condition": 85,
"control": 47,
"country": 18,
"defense": 71,
"is_starter": false,
"level": 7,
"name": "Kian Yarrow",
"nonce": 1033,
"portrait_uri": "ipfs://bafkreiportrait1033",
"position": "DEF",
"power": 60,
"rarity": "Common",
"speed": 68,
"stamina": 38,
"vision": 62
},
{
"accuracy": 56,
"condition": 72,
"control": 47,
"country": 35,
"defense": 49,
"is_starter": false,
"level": 4,
"name": "Lionel Zane",
"nonce": 1034,
"portrait_uri": "ipfs://bafkreiportrait1034",
"position": "DEF",
"power": 52,
"rarity": "Uncommon",
"speed": 54,
"stamina": 49,
"vision": 52
},
{
"accuracy": 71,
"condition": 84,
"control": 54,
"country": 20,
"defense": 53,
"is_starter": false,
"level": 12,
"name": "Marek Ashby",
"nonce": 1035,
"portrait_uri": "ipfs://bafkreiportrait1035",
"position": "MID",
"power": 55,
"rarity": "Common",
"speed": 44,
"stamina": 42,
"vision": 56
},
{
"accuracy": 38,
"condition": 98,
"control": 48,
"country": 52,
"defense": 71,
"is_starter": false,
"level": 2,
"name": "Nils Corvin",
"nonce": 1036,
"portrait_uri": "ipfs://bafkreiportrait1036",
"position": "MID",
"power": 40,
"rarity": "Rare",
"speed": 51,
"stamina": 39,
"vision": 53
},
{
"accuracy": 68,
"condition": 83,
"control": 64,
"country": 55,
"defense": 68,
"is_starter": false,
"level": 2,
"name": "Otto Dace",
"nonce": 1037,
"portrait_uri": "ipfs://bafkreiportrait1037",
"position": "FWD",
"power": 56,
"rarity": "Common",
"speed": 61,
"stamina": 66,
"vision": 52
},
{
"accuracy": 64,
"condition": 78,
"control": 56,
"country": 8,
"defense": 57,
"is_starter": false,
"level": 12,
"name": "Pavel Ember",
"nonce": 1038,
"portrait_uri": "ipfs://bafkreiportrait1038",
"position": "FWD",
"power": 61,
"rarity": "Uncommon",
"speed": 71,
"stamina": 72,
"vision": 49
}
],
"substitutes": [
1032,
1033,
1034,
1035,
1036,
1037,
1038
],
"wallet_address": "erd15feryxhrdz9m6y09mr8wrerwzgj6f8ntxvhxyrdlm5aahn0t09nl4ujy86"
},
"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