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

# Login

`POST /auth/login`

## Request

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

Login with email and password

## Request body

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

## Response `200`

Successful Response

- LoginResponse: Login response with user info and token.
  - `id` string, uuid, required
  - `email` string, required
  - `name` string, nullable
  - `avatar_url` string, nullable
  - `oauth_provider` string, nullable
  - `is_active` boolean, required
  - `access_token` string, required
  - `token_type` string
  - `requires_passkey_migration` boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mengi/apis/mengi-cloud.md) · [All operations](https://skmtc.dev/mengi/apis/mengi-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/mengi/apis/mengi-cloud/revisions/4ae9b375cdbb?raw)
