Account Management - Get Player Id From Auth Token

Gets a player's ID from an auth token.

POST https://titleId.playfabapi.com/Admin/GetPlayerIdFromAuthToken

Request Header

Name Required Type Description
X-SecretKey True
  • string

This API requires a title secret key, available to title admins, from PlayFab Game Manager.

Request Body

Name Required Type Description
Token True
  • string

The auth token of the player requesting the password reset.

TokenType True

The type of auth token of the player requesting the password reset.

Responses

Name Type Description
200 OK
400 Bad Request

This is the outer wrapper for all responses with errors

Security

X-SecretKey

This API requires a title secret key, available to title admins, from PlayFab Game Manager.

Type: apiKey
In: header

Definitions

ApiErrorWrapper

The basic wrapper around every failed API response

AuthTokenType
GetPlayerIdFromAuthTokenRequest

Gets a player ID from an auth token. The token expires after 30 minutes and cannot be used to look up a player when expired.

GetPlayerIdFromAuthTokenResult

ApiErrorWrapper

The basic wrapper around every failed API response

Name Type Description
code
  • integer

Numerical HTTP code

error
  • string

Playfab error code

errorCode
  • integer

Numerical PlayFab error code

errorDetails
  • object

Detailed description of individual issues with the request object

errorMessage
  • string

Description for the PlayFab errorCode

status
  • string

String HTTP code

AuthTokenType

Name Type Description
Email
  • string

GetPlayerIdFromAuthTokenRequest

Gets a player ID from an auth token. The token expires after 30 minutes and cannot be used to look up a player when expired.

Name Type Description
Token
  • string

The auth token of the player requesting the password reset.

TokenType

The type of auth token of the player requesting the password reset.

GetPlayerIdFromAuthTokenResult

Name Type Description
PlayFabId
  • string

The player ID from the token passed in

Error Codes

Name Code
AuthTokenDoesNotExist 1327