Set a mobile phone
POST /api/2.0/authentication/setphone
Request
Sets a mobile phone for the current user.
Headers
- Accept
enum of string
Can be one of:
application/json
,text/json
,text/plain
.- Content-Type
enum of string
Can be one of:
application/json
,application/*+json
,text/json
.
Body
Mobile phone request parameters
- mobilePhone
string
Mobile phone
Examples
POST /api/2.0/authentication/setphone HTTP/1.1
Accept: application/json
Content-Length: 32
Content-Type: application/json
Host: example.com
{
"mobilePhone": "some text"
}
curl --request POST \
--url https://example.com/api/2.0/authentication/setphone \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"mobilePhone": "some text"
}'
Responses
200
Authentication data
- token
string
Authentication token
- expires
string
date-time Token expiration time
- sms
boolean
Specifies if the authentication code is sent by SMS or not
- phoneNoise
string
Phone number
- tfa
boolean
Specifies if the two-factor application is used or not
- tfaKey
string
Two-factor authentication key
- confirmUrl
string
uri Confirmation email URL