Xsolla-logo
  • 文档
  • 创建帐户

注册新用户Client-side

post/user

创建新用户。

  • 如果您将用户数据存储在艾克索拉或自定义存储中,用户将收到帐户确认消息
  • 如果您将用户数据存储在PlayFab,用户将不会收到帐户确认消息
  • 如果您将用户数据存储在Firebase,则用户将从Firebase侧收到帐户验证消息。

关于用户数据存储的更多信息,请参阅用户数据存储比较页面。

Request
query Parameters
projectId
required
string <uuid>

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

login_url
string

URL to redirect the user to after account confirmation, successful authentication, two-factor authentication configuration, or password reset confirmation. Must be identical to the Callback URL specified in the URL block of Publisher Account. For the scenario of a login error, the value should be identical to the the Error callback URL specified in the URL block of Publisher Account. To find the settings, go to Login > your Login project and select the Callback URLs section in the upper block. Required if there are several Callback URLs.

payload
string

Your custom data. The value of the parameter will be returned in the payload claim of the user JWT. Recommended maximum length less than 500 characters. Note, that this parameter is only available if you use a custom user data storage.

Request Body schema: application/json
username
required
string [ 3 .. 255 ] characters

用户名。

password
required
string [ 6 .. 100 ] characters

用户密码。

email
required
string [ 1 .. 255 ] characters

用户邮箱地址。

accept_consent
boolean

用户是否同意处理其个人数据。

fields
object

用于详细注册表单的参数。要使用此功能,请联系您的客户成功经理。

Responses
200

确定(禁用了帐户确认)

204

无内容(启用了帐户确认)

400

错误的请求

404

未找到

422

无法处理的实体

429

请求过多

Request samples
application/json
{
  • "email": "john-email@email.com",
  • "fields": {
    },
  • "password": "password123",
  • "username": "John"
}
Response samples
application/json