League Endpoints
Get League Rules
Returns game rules and points configuration for a specific league and game. The gameId parameter is required. 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 the game rules and points configuration for a specific league and game. The response includes two objects:- rules - The game-specific rules configured for this league (maps, modes, restrictions, etc.)
- pointsConfig - The points system configuration (points per win, loss, draw, bonus multipliers, etc.)
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
gameId | string | Yes | The game ID to fetch rules for |
The
gameId parameter is required. You must specify which game’s rules you want to retrieve.Common Use Cases
Get Rules for a Specific Game
Display League Rules on a Third-Party Site
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
Game ID to fetch rules for (required)
The game ID to fetch rules for (required)