Authentication - Create Player Shared Secret
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.
POST https://titleId.playfabapi.com/Admin/CreatePlayerSharedSecret
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 | Type | Description |
---|---|---|
FriendlyName |
string |
Friendly name for this key |
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
Name | Description |
---|---|
Api |
The basic wrapper around every failed API response |
Create |
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. |
Create |
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 |
CreatePlayerSharedSecretRequest
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.
Name | Type | Description |
---|---|---|
FriendlyName |
string |
Friendly name for this key |
CreatePlayerSharedSecretResult
Name | Type | Description |
---|---|---|
SecretKey |
string |
The player shared secret to use when calling Client/GetTitlePublicKey |