POST api/auth/token

Authenticate user and retrieve token, example request: Header Content-Type:application/json Data {"Account": "cms","Login": "cms1","Password": "cms1"} Response: {"Token": "7B3D1792-C282-4D3F-BDB4-BA29A14B049D","Expired": "2015-11-09T15:06:50+00:00"}

Request Information

URI Parameters

None.

Body Parameters

Credentials.

UserCredentials
NameDescriptionTypeAdditional information
Account

User account.

string

Required

Login

User login.

string

Required

Password

User password.

string

Required

Request Formats

application/json, text/json

Sample:
{
  "Account": "sample string 1",
  "Login": "sample string 2",
  "Password": "sample string 3"
}

application/xml, text/xml

Sample:
<UserCredentials xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Account>sample string 1</Account>
  <Login>sample string 2</Login>
  <Password>sample string 3</Password>
</UserCredentials>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UserCredentials'.

Response Information

Resource Description

Return token with expiration time.

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.