---
title: "Get league team bans"
method: POST
path: "/leagues/{identifier}/bans"
tags: ["League: Moderation"]
---

# Get league team bans

`POST /leagues/{identifier}/bans`

Returns team bans for a league resolved by slug, with optional status filtering. Requires a personal or developer API key whose owner is currently a league ADMIN of the league in the path (or TeamBattles staff), with leagues.league_admin:read access on the key. These admin reads no longer require a paid developer plan; they stay authority-gated (current league ADMIN) and rate-limited by the league owner's plan. League API WRITE routes still require the leagueOperatorApi feature (api_pro or higher) on the league owner's plan.

## Path parameters

- `identifier` string, required — League slug.

## Request body

- BansRequestBody — Status filter for league team bans.
  - `status` 'active' | 'expired' | 'revoked' | 'all' — Filter bans by computed status. Defaults to all.

## Response `200`

Team bans for the league.

- LeagueBans — Team bans for a league.
  - `bans` object[], required — Enriched team ban records with computed status.
  - `count` integer, required — Number of bans returned.
  - `timestamp` string, required — Response generation time (ISO 8601).

## Other responses

- `400` — Bad request (invalid body, cursor, limit, or date).
- `401` — Missing or invalid API key.
- `403` — API key lacks the required permission.
- `404` — Resource not found.

---

[API](https://skmtc.net/teambattles/apis/teambattles-api.md) · [All operations](https://skmtc.net/teambattles/apis/teambattles-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/teambattles/teambattles-api/revisions/2ffe8fb53b7d/schema)
