---
title: "Login"
method: POST
path: "/auth/login"
tags: ["auth"]
---

# Login

`POST /auth/login`

## Request

- Base URL: `https://api.memoraeu.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.memoraeu.com/auth/login`
- Auth: none declared

Authentifie un utilisateur et retourne un JWT.

## Request body

- UserLogin
  - `email` string, required
  - `password` string, required

## Response `200`

Successful Response

- union
  - TokenResponse
    - `access_token` string, required
    - `token_type` string
    - `user_id` string, required
    - `org_id` string, required
    - `name` string, required
    - `email` string, nullable
    - `plan` string
    - `role` string
    - `is_admin` boolean
    - `kdf_salt` string, nullable
    - `needs_reencryption` boolean
    - `enc_secret` string, nullable
    - `enc_salt` string, nullable
  - MfaChallengeResponse
    - `mfa_required` true
    - `mfa_token` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/memoraeu/apis/memoraeu-api.md) · [All operations](https://skmtc.dev/memoraeu/apis/memoraeu-api/llms.txt) · [OpenAPI document](https://skmtc.dev/memoraeu/apis/memoraeu-api/revisions/d81fb82cff16?raw)
