Creates a new lobby and makes the caller the host. The caller is identified by the x-player-id header.
The lobby starts in waiting status. Other players can join via POST /{config}/join using the lobby ID or invite code (if the lobby is private).
Lobby config: The {config} path parameter maps to a lobby configuration defined in your project settings. Each config controls timeout, server size, matchmaking modes, and custom properties. If no matching config exists, sensible defaults are used.
Player state: Optionally pass state to set initial player state (ready status, team, loadout, MMR, etc.). Other players see this in the players array.
Private lobbies: Set isPrivate: true to hide the lobby from browsing and generate an invite code.
Unique player identifier. This becomes the lobby host.
Lobby configuration name or ID from project settings (e.g. "casual", "ranked_2v2").
Create a new lobby. The caller (x-player-id) becomes the host.
Display name for the lobby. Shown to other players when browsing.
1 - 100Preferred region for the game server. Available: us-east, us-west, eu-west, eu-north, ap-south, etc.
Maximum number of players (1–100). Defaults to 2.
1 <= x <= 100If true, the lobby is hidden from browse and an invite code is generated.
If true, players can join after the game has started.
Custom game settings (map, mode, difficulty, etc.). Passed to the game server as custom_data.
Initial player state for the host (ready status, team, loadout, etc.).
Lobby created. The caller is the host. Share the id or code for others to join.
Full lobby state including players, server, and matchmaking info.
Lobby ID.
Invite code for joining (null if private mode is disabled).
Lobby config name.
Current lobby status.
waiting, in_queue, starting, matched, match_found, in_game Player ID of the host.
Maximum player capacity.
Current number of players.
Preferred game server region.
Whether the lobby is hidden from browsing.
Whether players can join mid-game.
Custom game settings.
Players in the lobby with their state.
Game server info (null when no game running).
Matchmaking info (null when not searching).
ISO 8601 creation timestamp.
ISO 8601 last update timestamp.