Clubs are the organizational layer above teams in Gestor Deportivo. Think of a club as the parent institution — an Academia, a Club, or an Escuela de fútbol — that owns and groups multiple teams under a single brand. A football club might have a men’s first team, a women’s team, and a youth academy side all associated with the same club record. When you link a team to a club, the relationship is bidirectional: the team appears in the club’sDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/fredy-rizo/gestor-backend/llms.txt
Use this file to discover all available pages before exploring further.
teams array, and the club reference is added to the team’s club array simultaneously.
Every request that requires authentication must include the header
access-token: <jwt_token>. There is no Authorization: Bearer header on
this API.Club Categories
When creating a club, thecategory field must be one of the following:
| Value | Description |
|---|---|
Academia | A football academy, typically youth-focused |
Club | A full sports club with competitive teams |
Escuela de futbol | A football school / development programme |
Club Management
Register a Club
POST /api/club/register-club
Creates a new club linked to the authenticated user’s account. You can supply a club crest and banner image at creation time. The founded field is flexible — it accepts a year string (e.g. "1987") or a founder’s name depending on your data model preference.
Auth required: Yes
Official name of the club.
Short description or motto for the club.
One of
"Academia", "Club", or "Escuela de futbol".Year the club was founded (e.g.
"1987") or the founder’s name.Club crest / logo (multipart/form-data). Optional.
Banner image for the club profile page (multipart/form-data). Optional.
Listing Clubs
List All Clubs (Paginated)
POST /api/club/list-clubs/:pag?/:perpage?
Returns a paginated list of all clubs in the system. No authentication required — suitable for public tournament and league pages.
Auth required: No
Page number (1-based). Defaults to
1.Number of results per page.
List My Clubs
POST /api/club/list-my-clubs
Returns all clubs that belong to the authenticated user. Use this endpoint to build the club management dashboard.
Auth required: Yes
Team Association
Add a Team to a Club
POST /api/club/add-to-team-club/:clubId/:teamId
Links a team to a club. This operation is bidirectional:
- The team is added to the club’s
teamsarray (as a snapshot). - The club reference is added to the team’s
clubarray.
MongoDB ObjectId of the club.
MongoDB ObjectId of the team to associate with the club.
Bidirectional update: After this call,
GET-equivalent queries for the
club will show the team in club.teams, and queries for the team will show
the club reference in team.club. You do not need to call any additional
endpoint to synchronise the relationship.Club Model
Every club document returned by the API follows this schema.MongoDB ObjectId of the club.
Official name of the club.
Club description or motto.
Club type:
"Academia", "Club", or "Escuela de futbol".Founding year or founder name.
Array of image metadata objects for the club crest.
Array of image metadata objects for the club banner.
Array of team snapshot objects linked to this club. Each snapshot is written
at association time and reflects the team’s state at that moment.
Embedded owner snapshot.