Xsolla-logo

Register new user from serverServer-side

post/users

Creates a new user with requested body parameters. These parameters are set as confirmed. Combination of parameters passed to the body must include at least email or phone_number parameter. The call is used only if you set up Xsolla storage.

Notice
Rate limits for server-side methods are applied to this method.

SecurityServer
Request
query Parameters
projectId
required
string <uuid>

Login project ID from Publisher Account.

Request Body schema: application/json
email
string

User email address.

external_account_id
string

User ID from your game.

phone_number
string^\+(\d){5,25}$

User phone number. Is used for authentication via a phone number.

phone_number_verified
boolean

Flag indicates that the phone number has been verified.

Responses
200

OK

400

Bad Request

401

Unauthorized

404

Not Found

422

Unprocessable Entity

429

Too Many Requests

Request samples
application/json
{
  • "email": "asd123@asd123.asd",
  • "external_account_id": "1234567890asdfghjkl",
  • "phone_number": 123456789
}
Response samples
application/json
{
  • "user_id": "ff449154-7e2f-11e8-ad67-d89d67155224"
}