Starts authentication by the user phone number and sends a confirmation code to their phone number. The code lifetime is 3 minutes.
This call is used only with the Complete auth by phone number call.
The workflow of using this call:
send_link
is true
, after this request, you should send the Get confirmation code request to make SMS contain the confirmation code and link.
b. If the parameter send_link
is false
or not passed, the SMS will contain the confirmation code only.response_type required | string Grant type used in your project that has the enabled OAuth 2.0 protocol. Must be |
client_id required | integer Your application ID. Get it after creating an OAuth 2.0 client. |
state required | string Value used for additional user verification. Often used to mitigate CSRF Attacks. The value will be returned in the response. Must be longer than 8 symbols. |
scope | string Scope is a mechanism in OAuth 2.0 to limit an application’s access to a user’s account. Can be:
If you process your own values of the |
redirect_uri | string URL to redirect the user to after account confirmation, successful authentication, or password reset confirmation. To set up this parameter, contact your Account Manager. Notice
The parameter is required if you have more than one redirect URI in your project settings. |
OK
Bad Request
Not Found
Unprocessable Entity
Too Many Requests
{- "phone_number": "string",
- "send_link": true
}
{- "operation_id": "string"
}