Player Authenticate API

Player Authenticate API - Operator API

Authenticates a player and establishes a gaming session with JWT tokens.

post

Authenticates player, creates session if needed, and generates JWT access and refresh tokens.

Flow: Verify player existence → Create if needed → Generate tokens

Sample request:

{
    "playerId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}

Sample response:

{
    "sessionId": "550e8400-e29b-41d4-a716-446655440000",
    "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    "tokenType": "Bearer",
    "expiresIn": 3600
}
Authorizations
AuthorizationstringRequired

REQUIRED - JWT Authorization header using the Bearer scheme. All API endpoints require authentication, except for authentication endpoints (Connect/authentication). Example: "Authorization: Bearer {token}"

Query parameters
api-versionstringOptional
Header parameters
X-Transaction-Idstring · uuidOptional

Unique transaction identifier for request tracking

Example: 0e33f671-f582-4dc4-8d14-52fd2f722fef
Body
playerIdstring · uuidRequired
Responses
post
/player/authentication

Refreshes an expired access token using a valid refresh token.

post

Enables token renewal without re-authentication. Validates refresh token, verifies session status, and generates new access and refresh tokens.

Process: Validate refresh token → Check session → Generate new tokens

Sample request:

{
    "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}

Sample response:

{
    "sessionId": "550e8400-e29b-41d4-a716-446655440000",
    "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    "tokenType": "Bearer",
    "expiresIn": 3600
}
Authorizations
AuthorizationstringRequired

REQUIRED - JWT Authorization header using the Bearer scheme. All API endpoints require authentication, except for authentication endpoints (Connect/authentication). Example: "Authorization: Bearer {token}"

Query parameters
api-versionstringOptional
Header parameters
X-Transaction-Idstring · uuidOptional

Unique transaction identifier for request tracking

Example: 7a0c6c9b-5ffd-4db9-a39d-c017bf49b666
Body
refreshTokenstring · min: 1Required
Responses
post
/player/refresh-token

Last updated