POST

Authorizations

api-key
string
header
required

Per-project server key, prefixed sk_live_. Full access to every endpoint. Keep it on your backend: never ship it in a game binary.

Body

application/json
queue_id
string
required

Developer-chosen identifier. Unique within the project.

Pattern: ^[a-z0-9_]{1,64}$
Example:

"ranked_2v2"

name
string
required
Example:

"Ranked 2v2"

max_players
integer
required
Required range: 1 <= x <= 100
enabled
boolean
default:true
timeout
integer
Required range: x >= 1
heartbeat
boolean
default:false
heartbeat_timeout
integer
Required range: x >= 1
host_leave_behavior
enum<string>
default:promote
Available options:
promote,
delete
lobby_ttl
integer
Required range: x >= 1
invite_code_config
object

Controls invite code generation for lobbies in this queue. length counts the random portion only. The prefix is not included.

server_settings
object

Template used to create the game server when a match is made.

matchmaking
object

How lobbies in this queue are matched against each other. Use either the symmetric fields (teams, players_per_team) or team_composition, not both.

Response

Queue created.

A matchmaking queue. Queues are first-class resources in Simpl with their own endpoints, not settings buried inside a project config blob.

queue_id
string
required
Example:

"ranked_2v2"

name
string
required
Example:

"Ranked 2v2"

enabled
boolean
required

Disabled queues reject new lobbies with QUEUE_DISABLED.

max_players
integer
required

Maximum players per lobby in this queue.

Required range: 1 <= x <= 100
Example:

4

created_at
string<date-time>
required
updated_at
string<date-time>
required
timeout
integer

Seconds a lobby may sit in this queue before being returned to waiting.

Required range: x >= 1
Example:

120

heartbeat
boolean
default:false

Whether players must heartbeat to stay in the lobby.

heartbeat_timeout
integer

Seconds without a heartbeat before a player is dropped.

Required range: x >= 1
Example:

30

host_leave_behavior
enum<string>
default:promote

What happens when the host leaves. promote transfers host to the longest-present remaining player, delete destroys the lobby.

Available options:
promote,
delete
lobby_ttl
integer

Seconds an idle lobby survives before deletion.

Required range: x >= 1
Example:

3600

invite_code_config
object

Controls invite code generation for lobbies in this queue. length counts the random portion only. The prefix is not included.

server_settings
object

Template used to create the game server when a match is made.

matchmaking
object

How lobbies in this queue are matched against each other. Use either the symmetric fields (teams, players_per_team) or team_composition, not both.