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

# Login

`POST /api/auth/login`

## Request

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

Authenticate and return JWT tokens.

## Request body

- LoginRequest
  - `email` string, email, required
  - `password` string, required
  - `device_fingerprint` string, nullable
  - `device_name` string, nullable

## Response `200`

Successful Response

- TokenResponse
  - `access_token` string, required
  - `refresh_token` string, required
  - `token_type` string
  - `is_new_user` boolean

## Other responses

- `422`: Validation Error

---

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