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. |
|
| vendor_id | string |
None. |
|
| client_secret | string |
None. |
|
| registration | integer |
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",
"vendor_id": "sample string 3",
"client_secret": "sample string 4",
"registration": 5,
"scope": "sample string 6",
"username": "sample string 7",
"password": "sample string 8",
"grant_type": "sample string 9",
"refresh_token": "sample string 10"
}
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 4</client_secret> <grant_type>sample string 9</grant_type> <password>sample string 8</password> <refresh_token>sample string 10</refresh_token> <registration>5</registration> <scope>sample string 6</scope> <username>sample string 7</username> <vendor_id>sample string 3</vendor_id> </TokenRequest>
application/x-www-form-urlencoded
Sample:
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. |
|
| show_only_registration | 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",
"show_only_registration": 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> <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> <show_only_registration>true</show_only_registration> <token_type>sample string 6</token_type> </AccessTokenResponse>