Documentation

CreatePlayerSharedSecret

Creates a new Player Shared Secret Key. It may take up to 5 minutes for this key to become generally available after this API returns.

Request Details

Player Shared Secret Keys are used for the call to Client/GetTitlePublicKey, which exchanges the shared secret for an RSA CSP blob to be used to encrypt the payload of account creation requests when that API requires a signature header.

CreatePlayerSharedSecretRequest
Request Properties
FriendlyName String

Friendly name for this key

POST https://{{TitleID}}.playfabapi.com/Admin/CreatePlayerSharedSecret
    Content-Type: application/json
    X-SecretKey: <developer_secret_key>
{
  "FriendlyName": "iOS Users"
}
        

Response Details

CreatePlayerSharedSecretResult
Result Properties
SecretKey String

The player shared secret to use when calling Client/GetTitlePublicKey

Sample Response

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

Authentication

SecretKey

Possible Error Codes

Name Code