League: Overview
Get League Dashboard Stats
Read aggregate league admin dashboard counts.
POST
Permission Required
This endpoint is an admin read. It requires a league-operator API key bound to this league with theleagues.league_admin:read access permission, plus the leagueOperatorApi plan feature (api_pro or higher). A free key receives 403 error_api_feature_required.
The POST method is used to deliver an authenticated read; this endpoint does not modify the league.
Access / Membership Rules
You must have a MANAGER or higher role in the league (or be a TeamBattles staff member) to read dashboard stats. If you lack the required access, you’ll receive a403 error.
The {identifier} path parameter is the league slug - the URL-friendly league name (e.g., my-league).
What’s Returned
Returns aggregate league admin dashboard counts for the bound league as{ "stats": { ... }, "timestamp": "<ISO 8601>" }. The stats object contains:
| Field | Type | Description |
|---|---|---|
teamCount | number | Number of teams in the league. |
pendingApplications | number | Team applications awaiting a decision. |
activeSeasons | number | Currently active seasons. |
openTickets | number | Open league support tickets. |