Xsolla-logo
  • 文档
  • 创建帐户

从服务器注册新用户

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>

发布商帐户中的登录管理器项目ID。

Request Body schema: application/json
email
string

用户邮箱地址。

external_account_id
string

游戏中的用户ID。

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

用户手机号码。用于通过手机号码进行认证。

phone_number_verified
boolean

Flag indicates that the phone number has been verified.

Responses
200

确定

400

错误的请求

401

未授权

404

未找到

422

无法处理的实体

429

请求过多

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