Skip to content

Your match to watch right now

GET
/api/matches/active
curl --request GET \
--url 'https://foxleague.ai/api/matches/active?wallet_address=example' \
--header 'Authorization: Bearer <token>'

The match the signed-in player can watch right now, for the dashboard’s live banner; null when there is none. The first that applies:

  • a ranked or casual match of yours being played;
  • a ranked or casual match whose broadcast you started and that is still running;
  • a tournament or challenge match of yours on air with both its teams named, from its kickoff until its broadcast time runs out.

Who: a signed-in player, for their own wallet. A wallet without an account reads null.

Refusals:

  • Wallet mismatch: sign with the correct wallet: wallet_address is not the session wallet.
wallet_address
required
string

Your wallet; it must be the session wallet.

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": {
"away_team_name": "Golden Lynx",
"created_at": "2026-10-01T18:00:00+00:00",
"home_team_name": "Red Foxes",
"is_home": true,
"kind": "tournament",
"match_id": null,
"opponent_badge": "ipfs://bafybeih5jkqz2o4r7wq3a6sxn4kq2l3m5ve6yt7ofsbc2j3dw2p3wrzwxa/badge.png",
"status": "live",
"tm_game_id": null,
"tournament_id": 88,
"tournament_match_id": "Qx7_kP2mZr9-aB3cD4eF5g",
"tournament_title": "Autumn Cup"
},
"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

A server read failed. The body is empty.