Login

Method login.user
API version v4.0
Return to list of methods

Request parameters

Title Type Required Description
login string yes User login
password string yes User Password

Response parameters

Title Type Required Description
access_token string yes Authentication session key
expire_at number yes Timestamp when the issued token will no longer be valid

The lifetime of the received authentication session key after calling the login.user method is 1 hour. Once the session key's lifetime has expired, it must be requested again, i.e. call the login.user method.

To make requests to the API, you can use a permanent authentication key, which is available in your personal account (see Access by key).

Example request```json

{ "jsonrpc": "2.0", "id": "req1", "method": "login.user", "params": { "login": "your_login", "password": "your_password" } }

#### Sample answer```json
{
  "jsonrpc": "2.0",
  "id": "req1",
  "result": {
    "data": {
      "access_token": "2fRN4g217ca0b4224a67988aff3e584f91964a692045415f36fa66146f5a3c1ae1f6093d",
      "expire_at": 1475853742
    }
  }
}