Player profile
GET{base}/profile{base} is your wallet base URL. It is what
authenticates a token — the balance answers money and nothing else.
Request
| Query | When |
|---|---|
playerId | Service-key calls only. Never alongside a player token. |
Every call also carries the signature headers; verifying them is optional.
Response fields
Flat — there is no wrapping block.
| Field | Required | Rule |
|---|---|---|
externalId | yes | Your id for the player. id accepted as an alias. Comes back to you as playerId. |
username | yes | The player's handle. Unique on your site — see Uniqueness. |
firstname | yes | The player's real first name. Never the username again: this is what shows wherever we display a name. |
lastname | yes | The player's real last name. Same rule. |
countryIso | yes | Two letters, ISO 3166-1 alpha-2. |
currency | yes | ISO 4217. THE currency: everything we show this player, quote them a floor in, debit, store on their ticket and pay out is denominated in it. It must be one of the currencies your /balance quotes for them. |
avatar | no | URL. |
expiresAt | no | ISO 8601. Governs caching — see below. |
ok | no | Only false is read, and it refuses. |
Every required field must be a non-empty string, and one missing field refuses the token — the player sees an invalid session. There is no accommodation for a platform that manages no names: send the real ones. This is the call that authenticates every token, so a platform with no real names to send cannot authenticate any player at all — not some of them, not in a degraded mode.
We validate the token when the player signs in and cache the result for up to
five minutes, so a name, an avatar or a currency changed on your side reaches
the widget within minutes, with nothing to notify. The cache runs on
expiresAt: absent or unparseable, nothing is cached and every request calls
this endpoint — size your service for that. Fields beyond these are ignored.
Refusing a token
403 works too, and so does any other status outside 200–299. Do not
refuse with a 200. A 200 missing a required field is refused anyway — see
above.
Uniqueness
A username identifies one player on one of your sites. The same username on a
different site of yours is a different player, and we store them as two.
Matching is case-insensitive: JaneDoe and janedoe on the same site
are the same username.
A second player id claiming a username one of your players already holds — same case or not — is refused: the token is rejected, the player sees an invalid session, exactly like a missing field.
GET {base}/profile[?playerId=10]
Authorization: Bearer <player token | your service key>
Accept: application/json
# Player token — one call authenticates the session and identifies the player
curl -s "https://casino.example.com/api/sportsbook/profile" \
-H "Authorization: Bearer <the player's session token>" \
-H "Accept: application/json"
# Service key — there is no session, so playerId names the player
curl -s "https://casino.example.com/api/sportsbook/profile?playerId=10" \
-H "Authorization: Bearer <your service key>" \
-H "Accept: application/json"
Swap in {base}/profile and a token your site really issued — the command is
then byte for byte what our server sends you.
200The profile{
"externalId": "10",
"username": "janedoe",
"firstname": "Pablo",
"lastname": "Perez",
"countryIso": "CR",
"currency": "CRC",
"avatar": "https://example.com/avatars/10.png",
"expiresAt": "2026-08-15T18:00:00Z"
}
401Token refused401 Unauthorized
Next: Balance — the money, once identity is settled.