---
title: "Log in with email and password"
method: POST
path: "/api/auth/login"
tags: ["auth"]
---

# Log in with email and password

`POST /api/auth/login`

## Request

- The document declares no server URL.
- Auth: none declared

## Request body

- LoginRequest
  - `email` string, required
  - `password` string, required

## Response `200`

Logged in

- AuthResponse
  - `avatar_url` string, nullable
  - `display_name` string, required
  - `email` string, required
  - `id` string, required
  - `permissions` string[], required
  - `roles` string[], required

## Other responses

- `400`: Invalid input
- `401`: Invalid credentials
- `403`: Email not verified

## Changes

- **2026-07-16** `4473ab073bea`: 1 info
  - added the non-success response with the status `400`
- **2026-05-05** `68e179aba81a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/scholia-study/apis/scholia-api/changes/api/auth/login/post.md)

---

[API](https://skmtc.dev/scholia-study/apis/scholia-api.md) - [All operations](https://skmtc.dev/scholia-study/apis/scholia-api/llms.txt) - [OpenAPI document](https://skmtc.dev/scholia-study/apis/scholia-api/revisions/684b3751bfd3?raw)
