Skip to content

Tournaments API

The Tournaments API allows creating competitive events on community maps.

List tournaments with optional filtering.

Query Parameters:

ParameterTypeDescription
pagenumberPage number (default: 1)
limitnumberResults per page (default: 20)
statusstringFilter by status: upcoming, active, completed
mapstringFilter by map ID

Response:

{
"tournaments": [
{
"id": "tournament-uuid",
"name": "Weekly Arena",
"map": { "id": "map-uuid", "name": "Arena v2" },
"organizer": { "id": "user-uuid", "username": "player1" },
"status": "upcoming",
"startsAt": "2026-03-15T18:00:00Z",
"maxPlayers": 32,
"playerCount": 12
}
],
"total": 5,
"page": 1,
"limit": 20
}

Get tournament details including participants and results.

Create a new tournament. Requires authentication.

Request Body:

{
"name": "Weekly Arena",
"mapId": "map-uuid",
"startsAt": "2026-03-15T18:00:00Z",
"maxPlayers": 32,
"description": "Weekly competitive match on Arena v2"
}

Join a tournament. Requires authentication.

Response:

{
"message": "Joined tournament",
"playerCount": 13
}

Leave a tournament before it starts.

Update tournament details. Only the organizer can update.

Cancel a tournament. Only the organizer can cancel.

  1. Upcoming — Tournament is created, players can join
  2. Active — Tournament has started, matches are in progress
  3. Completed — All matches finished, results are final

Tournaments automatically transition from upcoming to active at the scheduled start time.