Returns the title's base 64 encoded RSA CSP blob.

Request Details

An RSA CSP blob to be used to encrypt the payload of account creation requests when that API requires a signature header. For example if Client/LoginWithCustomId requires signature headers but the player does not have an account yet follow these steps: 1) Call Client/GetTitlePublicKey with one of the title's shared secrets. 2) Convert the Base64 encoded CSP blob to a byte array and create an RSA signing object. 3) Encrypt the UTF8 encoded JSON body of the registration request and place the Base64 encoded result into the EncryptedRequest and with the TitleId field, all other fields can be left empty when performing the API request. 4) Client receives authentication token as normal. Future requests to LoginWithCustomId will require the X-PlayFab-Signature header.

Request Properties
TitleId (required) String

Unique identifier for the title, found in the Settings > Game Properties section of the PlayFab developer site when a title has been selected.

TitleSharedSecret (required) String

The shared secret key for this title

POST https://{{TitleID}}
    Content-Type: application/json
  "TitleId": "ID",
  "TitleSharedSecret": "123456789"

Response Details

Result Properties
RSAPublicKey String

Base64 encoded RSA CSP byte array blob containing the title's public RSA key

Sample Response

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



Possible Error Codes

Name Code
InvalidSharedSecretKey 1296
NoSharedSecretKeyConfigured 1292