Xsolla-logo

注册新用户

post/user

Creates a new user.

  • If you store user data at Xsolla or custom storage, the user will receive an account confirmation message.
  • If you store user data at PlayFab, the user will not receive an account confirmation message.
  • If you store user data at Firebase, the user will receive an account confirmation message from Firebase side.

See the Comparison of user data storages page for more information about user data storages.

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. To find it, go to Login > your Login project and select the Callback URLs section in the upper block of the navigation page. Required if there are several Callback URLs.

payload
string

您的自定义数据。参数的值将在用户JWTpayload声明中返回。

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

用户名。

password
required
string [ 6 .. 100 ] characters

用户密码。

email
required
string [ 1 .. 255 ] characters

用户邮箱地址。

accept_consent
boolean

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

fields
object

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

promo_email_agreement
integer >= 0
Default: 1

用户同意接收电子简讯。

Enum: 0 1
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