Skip to main content
GET
List teams

Authorizations

Authorization
string
header
required

Clerk session token. Use Authorization: Bearer .

Query Parameters

slug
string

Single-team lookup. Returns { team }.

leagueId
string

Filter to one league (relation id or slug).

Server-side name/slug match.

limit
integer

Page size 1-100. Pagination is opt-in.

Required range: 1 <= x <= 100
page
integer

1-based page.

Required range: x >= 1

Response

200

{ success, data: { teams, season, total } } (total always present when filtering/paginating; absent on the unfiltered full-list call) or { success, data: { team } } when slug is set