Auth

Логин (bearer)

post/api/v1/auth/login

Request

  • Base URL: http://158.160.83.199:8000
  • URL: http://158.160.83.199:8000/api/v1/auth/login
  • Auth: none required

Request body

loginstring required

Логин пользователя

passwordstring required

Пароль (минимум 8 символов)

Example request

{
  "login": "ivan_petrov",
  "password": "securePass123"
}

Response

OK

access_tokenstring required

JWT access-токен для авторизации

Example response

{
  "access_token": "eyJhbGciOiJIUzI1NiIs...",
  "user": {
    "profile": {
      "city": "Москва",
      "country": "Россия"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.