post

/login/phone/request

Starts authentication by the user phone number and sends a confirmation code to their phone number.

This call is used only with the Complete auth by phone number call.

The workflow of using this call:

  1. The application opens an authentication form so the user can enter their phone number.
  2. The user enters their phone number.
  3. The application sends this request to the Xsolla Login server.
  4. The Xsolla Login server sends a confirmation code to the phone number and returns the ID of the confirmation code.
  5. The application shows a field so the user can fill in the confirmation code.
  6. The user enters the received confirmation code.
  7. The application sends the Complete auth by phone number request with the received ID to the Xsolla Login server.
  8. The user is considered as authorized.

Request Parameters

4 Query Parameters

Request Body

Schema
object
phone_number
string

User phone number.

2 validations + required

Responses

OK

Schema
object
operation_id
string

ID of the confirmation code.

required

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
$$.env
No $$.env variables are being used in this request.