Get Started
Portal api methods
Help

POST api/2.0/authentication

Description

Gets authentication token for use in api authorization

Parameters
Name Description Type Example
userName
sent in body
user name or email string some text
password
sent in body
password string some text
provider
sent in body
social media provider type string some text
accessToken
sent in body
provider token string some text
Example
POST api/2.0/authentication
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "userName": "some text",
  "password": "some text",
  "provider": "some text",
  "accessToken": "some text"
}
Returns

tokent to use in 'Authorization' header when calling API methods

Example Response

application/json

{
  "status": 0,
  "response": {
    "token": "sdjhfskjdhkqy739459234",
    "expires": "2019-06-26T04:27:09.6540761Z",
    "sms": false,
    "phoneNoise": ""
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <token>sdjhfskjdhkqy739459234</token>
    <expires>2019-06-26T04:27:09.6540761Z</expires>
    <sms>false</sms>
    <phoneNoise></phoneNoise>
  </response>
</result>