POST api/v1/auth/token
Request Information
URI Parameters
None.
Body Parameters
TokenRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| WindowsAuthentication | boolean |
None. |
|
| client_id | string |
None. |
|
| client_secret | string |
None. |
|
| scope | string |
None. |
|
| username | string |
None. |
|
| password | string |
None. |
|
| grant_type | string |
None. |
|
| refresh_token | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"WindowsAuthentication": true,
"client_id": "sample string 2",
"client_secret": "sample string 3",
"scope": "sample string 4",
"username": "sample string 5",
"password": "sample string 6",
"grant_type": "sample string 7",
"refresh_token": "sample string 8"
}
application/xml, text/xml
Sample:
<TokenRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IO.Swagger.Models"> <WindowsAuthentication>true</WindowsAuthentication> <client_id>sample string 2</client_id> <client_secret>sample string 3</client_secret> <grant_type>sample string 7</grant_type> <password>sample string 6</password> <refresh_token>sample string 8</refresh_token> <scope>sample string 4</scope> <username>sample string 5</username> </TokenRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AccessTokenResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| access_token | string |
None. |
|
| expires_in | integer |
None. |
|
| redirect_url | string |
None. |
|
| ip | string |
None. |
|
| is_editor | boolean |
None. |
|
| refresh_expires_in | integer |
None. |
|
| refresh_token | string |
None. |
|
| token_type | string |
None. |
|
| not_before_policy | integer |
None. |
|
| session_state | string |
None. |
|
| scope | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"access_token": "sample string 1",
"expires_in": 1,
"redirect_url": "sample string 2",
"ip": "sample string 3",
"is_editor": true,
"refresh_expires_in": 1,
"refresh_token": "sample string 5",
"token_type": "sample string 6",
"not_before_policy": 1,
"session_state": "sample string 7",
"scope": "sample string 8"
}
application/xml, text/xml
Sample:
<AccessTokenResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IO.Swagger.Models"> <access_token>sample string 1</access_token> <expires_in>1</expires_in> <ip>sample string 3</ip> <is_editor>true</is_editor> <not_before_policy>1</not_before_policy> <redirect_url>sample string 2</redirect_url> <refresh_expires_in>1</refresh_expires_in> <refresh_token>sample string 5</refresh_token> <scope>sample string 8</scope> <session_state>sample string 7</session_state> <token_type>sample string 6</token_type> </AccessTokenResponse>