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

# Login

`POST /v1/auth/login`

## Request

- Base URL: `https://api.sonenta.dev`
- URL: `https://api.sonenta.dev/v1/auth/login`
- Auth: none declared

## Request body

- LoginIn
  - `email` string, required
  - `password` string, required

## Response `200`

Successful Response

- union
  - AppRoutesAuthTokenOut
    - `access_token` string, required
    - `token_type` string
    - `expires_at` string, date-time, required
    - `refresh_token` string, nullable
  - MfaChallengeOut: Step-1 login response when MFA is enabled. Step 2 is /v1/auth/mfa/verify.
    - `mfa_required` boolean
    - `mfa_token` string, required
    - `methods` string[], required
    - `expires_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

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