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.
identityTokenis 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
200with theplayerIdthe token belongs to, and optionallyexpiresAt.
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
- 200
- 400
- 401
- 500
- default
Successfully
400 (BAD REQUEST) error with some field in the request
Unauthorized
500 (Error) Internal server Error
An unexpected error response.