Send SMS code
POST{baseUrl}/api/2.0/authentication/sendsms
Sends SMS with an authentication code.
Request
- application/json
Body
userNamestringnullable
Username / email
Example:
some text
passwordstringnullable
Password
Example:
vfmf2vO1Kp
passwordHashstringnullable
Password hash
Example:
some text
providerstringnullable
Provider type
Example:
some text
accessTokenstringnullable
Provider access token
Example:
some text
serializedProfilestringnullable
Serialized user profile
Example:
some text
codestringnullable
Two-factor authentication code
Example:
some text
codeOAuthstringnullable
Code for getting a token
Example:
some text
sessionboolean
Session based authentication or not
Example:
true
confirmData object
recaptchaType object
recaptchaResponsestringnullable
reCAPTCHA response
Example:
some text
culturestringnullable
Culture
Example:
some text
Responses
- 200
- 400
- 429
Authentication data
- application/json
- Schema
- Example (auto)
Schema
tokenstringnullable
Authentication token
Example:
abcde12345
expiresdate-time
Token expiration time
Example:
2008-04-10T06:30:00.0000000+04:00
smsboolean
Specifies if the authentication code is sent by SMS or not
Example:
false
phoneNoisestringnullable
Phone number
Example:
tfaboolean
Specifies if the two-factor application is used or not
Example:
false
tfaKeystringnullable
Two-factor authentication key
Example:
confirmUrlurinullable
Confirmation email URL
Example:
some text
{
"token": "abcde12345",
"expires": "2008-04-10T06:30:00.0000000+04:00",
"sms": false,
"phoneNoise": "",
"tfa": false,
"tfaKey": "",
"confirmUrl": "some text"
}
userName, password or passworHash is empty
Too many login attempts. Please try again later
- curl
- python
- javascript
- php
- csharp
- java
- CURL
curl -L '/api/2.0/authentication/sendsms' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"userName": "some text",
"password": "vfmf2vO1Kp",
"passwordHash": "some text",
"provider": "some text",
"accessToken": "some text",
"serializedProfile": "some text",
"code": "some text",
"codeOAuth": "some text",
"session": true,
"confirmData": {
"email": "Sydney_Roberts4@hotmail.com",
"first": true,
"key": "some text"
},
"recaptchaType": "Default",
"recaptchaResponse": "some text",
"culture": "some text"
}'
ResponseClear