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 a linked account you chose in the setup form (discord, epic, twitch or lichess) that the user has linked on BluMint, 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}
string[]
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 name 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
Maximum string length: 256

Response

The lookup callback URL is registered.

message
string
required
Example:

"Success - Player lookup callback URL set successfully."