League Endpoints
Get League Penalties
Returns penalties and/or cooldowns for a specific league with optional filtering by type, team, and game. Requires API key with leagues.league_admin permission. The user must have MANAGER+ role in the league or be TB staff.
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_admin permission on your API key.
Membership Required
You must have a MANAGER or higher role in the league, or be a TeamBattles staff member, to access league penalties. If you lack the required access, you’ll receive a403 error.
League Identifier
The{identifier} path parameter accepts the league slug - the URL-friendly league name (e.g., my-league).
What’s Returned
Returns penalties and/or cooldowns for a specific league. The response always includes bothpenalties and cooldowns arrays - use the type parameter to control which data is fetched.
This is an admin endpoint. Unlike the public endpoints (discover, profile, standings, seasons, rules),
this endpoint requires the
leagues.league_admin permission and MANAGER+ league role.Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | No | Data type to fetch: penalties, cooldowns, or all (default) |
teamId | string | No | Filter penalties by a specific team ID |
gameId | string | No | Filter penalties by a specific game ID |
limit | number | No | Maximum results to return (1-100, default 50) |
Type Parameter
| Value | Description |
|---|---|
penalties | Returns only point penalties |
cooldowns | Returns only match cooldowns |
all | Returns both penalties and cooldowns (default) |
Filtering Options
Team Filtering
UseteamId to filter penalties for a specific team.
Game Filtering
UsegameId to filter penalties related to a specific game.
The
teamId and gameId filters only apply to penalties, not cooldowns.Common Use Cases
Get All Penalties and Cooldowns
Get Penalties Only
Get Penalties for a Specific Team
Get Active Cooldowns Only
Get Penalties 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 type, team, game filters, and limit
Data type to fetch: penalties, cooldowns, or all
Available options:
penalties, cooldowns, all Filter penalties by a specific team ID
Filter penalties by a specific game ID
Maximum number of results to return (1-100)
Required range:
1 <= x <= 100