POST api/v1/token
The token endpoint supporting either credentials or refresh token flows.
Request Information
URI Parameters
None.
Body Parameters
The model used for authentication.
AuthenticateModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Username | string |
None. |
|
| Password | string |
None. |
|
| client_id | string |
None. |
|
| client_secret | string |
None. |
|
| grant_type | string |
None. |
|
| RefreshToken | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Username": "sample string 1",
"Password": "sample string 2",
"client_id": "sample string 3",
"client_secret": "sample string 4",
"grant_type": "sample string 5",
"RefreshToken": "sample string 6"
}
application/xml, text/xml
Sample:
<AuthenticateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Api.Models"> <ClientId>sample string 3</ClientId> <ClientSecret>sample string 4</ClientSecret> <GrantType>sample string 5</GrantType> <Password>sample string 2</Password> <RefreshToken>sample string 6</RefreshToken> <Username>sample string 1</Username> </AuthenticateModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.