Xsolla-logo

Neuen Benutzer auf dem Server registrieren

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-Projekt-ID aus dem Kundenportal.

Request Body schema: application/json
email
string

E-Mail-Adresse des Benutzers.

external_account_id
string

Benutzer-ID aus Ihrem Spiel.

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

Telefonnummer des Benutzers. Dient dazu, den Benutzer über eine Telefonnummer zu authentifizieren.

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"
}