POST api/v{version}/token

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

LoginModel
NameDescriptionTypeAdditional information
UserName

string

None.

Password

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserName": "sample string 1",
  "Password": "sample string 2"
}

application/xml, text/xml

Sample:
<LoginModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Web.Areas.Apiv2.Models">
  <Password>sample string 2</Password>
  <UserName>sample string 1</UserName>
</LoginModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

TokenResponseModel
NameDescriptionTypeAdditional information
Token

Access token.

string

None.

TokenType

string

None.

ExpiresIn

Number of seconds

decimal number

None.

User

string

None.

Created

date

None.

Expires

date

None.

Response Formats

application/json, text/json

Sample:
{
  "Token": "sample string 1",
  "TokenType": "sample string 2",
  "ExpiresIn": 3.1,
  "User": "sample string 4",
  "Created": "2022-08-14T11:02:07.6162189+02:00",
  "Expires": "2022-08-14T11:02:07.6162189+02:00"
}

application/xml, text/xml

Sample:
<TokenResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Web.Areas.Apiv2.Models">
  <Created>2022-08-14T11:02:07.6162189+02:00</Created>
  <Expires>2022-08-14T11:02:07.6162189+02:00</Expires>
  <ExpiresIn>3.1</ExpiresIn>
  <Token>sample string 1</Token>
  <TokenType>sample string 2</TokenType>
  <User>sample string 4</User>
</TokenResponseModel>