POST api/Account/Token
Request Information
URI Parameters
None.
Body Parameters
CredentialsName | Description | Type | Additional information |
---|---|---|---|
GrantType | string |
None. |
|
Username | string |
None. |
|
Password | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "GrantType": "sample string 1", "Username": "sample string 2", "Password": "sample string 3" }
application/xml, text/xml
Sample:
<Credentials xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <GrantType>sample string 1</GrantType> <Username>sample string 2</Username> <Password>sample string 3</Password> </Credentials>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
TokenResultName | Description | Type | Additional information |
---|---|---|---|
AccessToken | string |
None. |
|
TokenType | string |
None. |
|
ExpiresIn | unsigned integer |
None. |
|
UserName | string |
None. |
|
Issued | date |
None. |
|
Expires | date |
None. |
Response Formats
application/json, text/json
Sample:
{ "access_token": "sample string 1", "token_type": "sample string 2", "expires_in": 3, "userName": "sample string 4", ".issued": "2022-05-07T22:37:25.6975897+00:00", ".expires": "2022-05-07T22:37:25.6975897+00:00" }
application/xml, text/xml
Sample:
<TokenResult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <AccessToken>sample string 1</AccessToken> <TokenType>sample string 2</TokenType> <ExpiresIn>3</ExpiresIn> <UserName>sample string 4</UserName> <Issued /> <Expires /> </TokenResult>