Xsolla-logo

Generate RSA keyServer-side

post/projects/{project_id}/keys

Generates new RSA key and returns public key. To validate user JWT, choose the library and pass an appropriate public key from the response to this call to the validation function.

SecurityServer
Request
path Parameters
project_id
required
string <uuid>

Login project ID from Publisher Account.

Responses
200

OK

400

Bad Request

404

Not Found

429

Too Many Requests

Request samples
curl --request POST \
  --url https://login.xsolla.com/api/projects/{project_id}/keys \
  --header 'X-SERVER-AUTHORIZATION: YOUR_SERVER_TOKEN'
Response samples
application/json
{
  • "alg": "string",
  • "e": "string",
  • "kid": "string",
  • "kty": "string",
  • "n": "string",
  • "use": "string"
}