Skip to main content
POST
Registers your close-lobby callback URL.

Authorizations

X-Api-Key
string
header
required

Body

application/json
closeMatchUrl
string<uri>
required

The https URL of your close-lobby endpoint.

Example:

"https://www.yourgame.com/api/match/close"

authentication
object

The secret BluMint sends when it calls your close-lobby endpoint. When omitted, any secret registered earlier stays in place.

Callbacks

POST
{$request.body#/closeMatchUrl}matchClose

Body

application/json
idempotencyKey
string
required

The Idempotency-Key of the create that made the lobby to close, never your matchId. It can belong to a create whose answer never reached BluMint, or to one that never reached you.

Maximum string length: 128
Pattern: ^[\dA-Za-z-]{1,128}$
reason
enum<string>
required

Why BluMint is closing your lobby. Close it and answer 200 whatever the reason; the reason is for your logs.

  • decided: the BluMint match, or a game session of it, got a result without you, for example because the host entered a score.
  • replaced: something other than the host's take over replaced the lobby you made. BluMint handed the match to the host (your create failed for good after you may have made a lobby: a 500, a 409 idempotency_key_reused, a 200 it could not use, an answer the decision table does not list, or an outage on its last send; or its hold ran out) and the host then set it up; the host set it up while your create was still on its way; the host reset its score; a player change re-seated it; or you made a second lobby under one Idempotency-Key.
  • removed: the BluMint match was deleted, for example because the host undid the start of the tournament.
  • hostOverride: the host pressed take over on a match you were running or setting up, to run it manually instead.
Available options:
decided,
replaced,
removed,
hostOverride

Response

200

The lobby is closed or had already ended, or no lobby exists under the key and you will refuse a create under it.

Response

The close-lobby callback URL is registered.

message
string
required
Example:

"Success - Match close callback URL set successfully."