League Endpoints
Get League Seasons
Returns seasons for a specific league with optional game and status filtering. Requires API key with leagues.league_public permission.
POST
Documentation Index
Fetch the complete documentation index at: https://teambattles.gg/docs/llms.txt
Use this file to discover all available pages before exploring further.
Permission Required
This endpoint requires theleagues.league_public permission on your API key.
League Identifier
The{identifier} path parameter accepts the league slug - the URL-friendly league name (e.g., my-league).
What’s Returned
Returns all seasons for a specific league with optional filtering by game or status. Each season includes its name, status, start and end dates, and other metadata.Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
gameId | string | No | Filter seasons by a specific game ID |
status | string | No | Filter seasons by status |
Filtering Options
Game Filtering
UsegameId to filter seasons associated with a specific game.
Status Filtering
Usestatus to filter seasons by their current status (e.g., active, completed, upcoming).
Common Use Cases
Get All Seasons
Get Active Seasons Only
Get Seasons for a Specific Game
Authorizations
API key authentication. Generate an API key from Settings > Developer in the TeamBattles app. Format: tb_xxxxxxxx...
Path Parameters
League slug
Body
application/json
Optional game and status filters