Skip to main content
POST
/
api
/
internal
/
auth
/
validate-token
Validate JWT token
curl --request POST \
  --url https://ts.playservices.tech/api/api/internal/auth/validate-token \
  --header 'Content-Type: application/json' \
  --header 'X-Internal-Api-Key: <api-key>' \
  --data '
{
  "token": "<string>"
}
'
{
  "valid": true,
  "tournament_id": "<string>",
  "internal_player_id": "<string>",
  "display_name": "<string>",
  "external_user_id": "<string>",
  "operator_id": "<string>",
  "tournament_context": {},
  "player_context": {},
  "permissions": [
    "<string>"
  ],
  "room_assignment": "tournament_123_crash-classic",
  "game_slug": "<string>",
  "token_expires_at": "2023-11-07T05:31:56Z",
  "error": "<string>"
}

Authorizations

X-Internal-Api-Key
string
header
required

Internal API key for Game Platform integration

Body

application/json
token
string
required

JWT token to validate

Response

Token validation result

valid
boolean
tournament_id
string
internal_player_id
string
display_name
string
external_user_id
string
operator_id
string
tournament_context
object
player_context
object
permissions
string[]
room_assignment
string
Example:

"tournament_123_crash-classic"

game_slug
string
token_expires_at
string<date-time>
error
string