POST api/Authorization/Login

User authentication. Get auth token (Token lifetime is 3 months from the date of receipt).

Request Information

URI Parameters

None.

Body Parameters

AuthenticationRequest
NameDescriptionTypeAdditional information
Login

User login (usually equal user email)

string

None.

Password

Account password

string

None.

Request Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<AuthenticationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IDEV.RookeeWebApi.Models.InputData">
  <Login>sample string 1</Login>
  <Password>sample string 2</Password>
</AuthenticationRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Bearer token (if user authorized) or null (if user is not authorized)

AuthentificationResponse
NameDescriptionTypeAdditional information
Token

Bearer token for authorization

string

None.

StatusCode

Response status code

ApiStatusCode

None.

ErrorMsg

Error text if status code not Ok

string

None.

Response Formats

application/json, text/json

Sample:

Sample not available.