Documentation

GetPlayerIdFromAuthToken

Gets a player's ID from an auth token.

Request Details

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.

GetPlayerIdFromAuthTokenRequest
Request Properties
Token (required) String

The auth token of the player requesting the password reset.

TokenType (required) AuthTokenType

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

POST https://{{TitleID}}.playfabapi.com/Admin/GetPlayerIdFromAuthToken
    Content-Type: application/json
    X-SecretKey: <developer_secret_key>
{
  "Token": "3F584AD0EF943E2",
  "TokenType": "Email"
}
        

Response Details

GetPlayerIdFromAuthTokenResult
Result Properties
PlayFabId String

The player ID from the token passed in

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
  "code": 200,
  "status": "OK",
  "data": {
    "PlayFabId": "752FE20238534A4B"
  }
}

Authentication

SecretKey

Possible Error Codes

Name Code
AuthTokenDoesNotExist 1327