Skip to main content

Validate Player Identity Token

POST 

/api/auth/v1/player

PEP calls this endpoint on your platform to check that a player has a valid, active session. PEP makes the call the first time the UI Widgets or the Web Client SDK initialize for a player, and again whenever that player's session expires.

  • identityToken is the same identity token you pass to the UI Widgets and the Web Client SDK, for example a session ID or an access token issued by your platform.
  • If the session is valid, return 200 with the playerId the token belongs to, and optionally expiresAt.

PEP authenticates the call with the x-authorization header, using the method you configured in the Admin Dashboard: an API key or OAuth client credentials.

Request​

Responses​

Successfully