Xsolla-logo

Add username/email auth to account

post/users/me/link_email_password

Adds the username/email and password authentication to the existing user account. This call is used if the account is created via device ID or phone number.

Request
Security:
query Parameters
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 > General settings. Required if there are several Callback URLs.

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

Username.

password
required
string [ 6 .. 100 ] characters

User password.

email
required
string <email> [ 1 .. 255 ] characters

User email address.

promo_email_agreement
integer >= 0
Default: 1

User consent to receive the newsletter.

Enum: 0 1
Responses
200

OK

400

Bad Request

401

Unauthorized

422

Unprocessable Entity

429

Too Many Requests

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