League Endpoints
Get League Members
Returns staff members for a specific league. Requires API key with leagues.league_admin permission. The user must have MEMBER+ 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 MEMBER or higher role in the league, or be a TeamBattles staff member, to access league staff members. 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 the list of staff members for a specific league. Each member includes their user information and role within the league.This is an admin endpoint. Unlike the public endpoints (discover, profile, standings, seasons, rules),
this endpoint requires the
leagues.league_admin permission and league membership.Request Body
This endpoint does not require any request body parameters. An empty JSON body{} or no body is accepted.
Common Use Cases
List All Staff Members
Check Staff Roles
Authorizations
API key authentication. Generate an API key from Settings > Developer in the TeamBattles app. Format: tb_xxxxxxxx...
Path Parameters
League slug