League Endpoints
Get League Bans
Returns team bans for a specific league with optional status filtering. 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 bans. 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 team bans for a specific league. Each ban includes the team information, reason, ban duration, and current status.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 |
|---|---|---|---|
status | string | No | Filter by ban status: active, expired, revoked, or all |
Ban Statuses
| Status | Description |
|---|---|
active | Ban is currently in effect |
expired | Ban has passed its expiration date |
revoked | Ban was manually revoked by staff |
all | Returns bans of all statuses |
Common Use Cases
Get Active Bans
Get All Bans (Including Expired)
Get Revoked Bans
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 status filter
Filter by ban status
Available options:
active, expired, revoked, all