POST api/2.0/authentication/{code}
Returns the two-factor authentication token for use in api authorization.
Name |
Description |
Type |
Example |
code
sent in url
|
Two-factor authentication code
|
string
|
some text
|
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
|
codeOAuth
sent in body
|
Code for take token
|
string
|
some text
|
POST api/2.0/authentication/some+text
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"userName": "some text",
"password": "some text",
"provider": "some text",
"accessToken": "some text",
"codeOAuth": "some text"
}
Two-factor authentication token to use in 'Authorization' header when calling API methods
application/json
{
"status": 0,
"response": {
"token": "abcde12345",
"expires": "2022-08-11T22:56:17.9417881Z"
}
}
text/xml
<result>
<status>0</status>
<response>
<token>abcde12345</token>
<expires>2022-08-11T22:56:17.9417881Z</expires>
</response>
</result>