Skip to main content
POST
Registers your player lookup callback URL.

Authorizations

X-Api-Key
string
header
required

Body

application/json
lookupPlayerUrl
string<uri>
required

The https URL of your player lookup endpoint.

Example:

"https://www.yourgame.com/api/player/lookup"

authentication
object

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

Callbacks

POST
{$request.body#/lookupPlayerUrl}lookupPlayer

Body

application/json

One BluMint user per call. Each key is an authentication method you chose in the setup form that the user has linked on BluMint and that BluMint looks players up by (today discord, epic, twitch or lichess), and its array holds exactly one id, the user's id on that provider. A user holds at most one account per provider. With your secret in the body, the body also carries that field.

{key}

An authentication method key, holding the user's id on that provider.

Required array length: 1 element

Response

200 - application/json

For a player you know, answer each key with a one-entry array holding your player id for that account, a non-empty string of at most 256 printable characters. For a miss, answer [] or [null], or leave the key out. Two keys must never identify different players, and an array never holds more than one entry; either fails the call. Keys BluMint did not send are ignored. A miss is never a 404.

{key}
(string | null)[]
Maximum array length: 1
Required string length: 1 - 256
Pattern: \S

Response

The lookup callback URL is registered.

message
string
required
Example:

"Success - Player lookup callback URL set successfully."