Documentation

ValidateEntityToken

Method for a server to validate a client provided EntityToken. Only callable by the title entity.

Request Details

Given an entity token, validates that it hasn't exipired or been revoked and will return details of the owner.

ValidateEntityTokenRequest
Request Properties
EntityToken (required) String

Client EntityToken

POST https://{{TitleID}}.playfabapi.com/Authentication/ValidateEntityToken
    Content-Type: application/json
{
  "EntityToken": "50c61b9065b27a124a400ee3b95d404313986969"
}
        

Response Details

ValidateEntityTokenResponse
Result Properties
Entity EntityKey

The entity id and type.

Lineage EntityLineage

The lineage of this profile.

Sample Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
  "code": 200,
  "status": "OK",
  "data": {
    "Lineage": {
      "NamespaceId": "1679471093",
      "TitleId": "26917491733",
      "MasterPlayerAccountId": "1234567787392",
      "TitlePlayerAccountId": "42434567785265"
    },
    "Entity": {
      "Id": "42434567785265",
      "Type": "title_player_account",
      "TypeString": "title_player_account"
    }
  }
}

Authentication

EntityToken

Possible Error Codes

Name Code
EntityTokenExpired 1336
EntityTokenInvalid 1335
EntityTokenRevoked 1337