Get Started
API backend
API system
More information

POST api/2.0/authentication/setphone This function requires authentication

Description

Sets a mobile phone for the current user.

Parameters
Name Description Type Example
MobilePhone
sent in body
Mobile phone System.String
Example
POST api/2.0/authentication/setphone
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "MobilePhone": "some text"
}
Returns

Authentication data

Example Response

application/json

{
  "status": 0,
  "response": {
    "Token": "some text",
    "Expires": "2008-04-10T06-30-00.000Z",
    "Sms": true,
    "PhoneNoise": "some text",
    "Tfa": true,
    "TfaKey": "some text",
    "ConfirmUrl": "some text"
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <Token>some text</Token>
    <Expires>2008-04-10T06-30-00.000Z</Expires>
    <Sms>True</Sms>
    <PhoneNoise>some text</PhoneNoise>
    <Tfa>True</Tfa>
    <TfaKey>some text</TfaKey>
    <ConfirmUrl>some text</ConfirmUrl>
  </response>
</result>