Xsolla-logo

从服务器注册新用户

post/users

使用请求的正文参数创建一个新用户。这些参数设置为已确认。传递给正文的参数组合必须至少包含emailphone_number参数。该调用仅在设置了艾克索拉存储时使用。

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

标志表示已验证手机号

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