POST api/Token
Request Information
URI Parameters
None.
Body Parameters
RestTokenName | Description | Type | Additional information |
---|---|---|---|
grant_type | string |
None. |
|
client_id | string |
None. |
|
client_secret | string |
None. |
|
username | string |
None. |
|
password | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "grant_type": "sample string 1", "client_id": "sample string 2", "client_secret": "sample string 3", "username": "sample string 4", "password": "sample string 5" }
application/xml, text/xml
Sample:
<RestToken xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EngageCL.Engage"> <client_id>sample string 2</client_id> <client_secret>sample string 3</client_secret> <grant_type>sample string 1</grant_type> <password>sample string 5</password> <username>sample string 4</username> </RestToken>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
RestTokenResponseName | Description | Type | Additional information |
---|---|---|---|
access_token | string |
None. |
|
refresh_token | string |
None. |
|
expires_in | integer |
None. |
|
refresh_expires_in | integer |
None. |
|
message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "access_token": "sample string 1", "refresh_token": "sample string 2", "expires_in": 3, "refresh_expires_in": 4, "message": "sample string 5" }
application/xml, text/xml
Sample:
<RestTokenResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EngageCL.Engage"> <access_token>sample string 1</access_token> <expires_in>3</expires_in> <message>sample string 5</message> <refresh_expires_in>4</refresh_expires_in> <refresh_token>sample string 2</refresh_token> </RestTokenResponse>