Sessions API

Get unauthorized with incorrect credentials

POST /rest/v2/login

Parameters

Name Description
session[login] Username
session[password] Password

Request

Headers

Accept: application/json
Content-Type: application/json

Route

POST /rest/v2/login

Body

{
  "session": {
    "login": "rest_auth_test",
    "password": "bad_password"
  }
}

Response

Headers

Content-Type: application/json; charset=utf-8

Status

401 Unauthorized

Body

{
  "error": "Неверный пользователь или пароль"
}