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

# User login

`POST /auth/login`

Authenticate user with email and password, returns JWT token

## Request body

- LoginDto
  - `email` string, required — User email address
  - `password` string, required — User password

## Response `200`

Login successful

- LoginResponseDto
  - `access_token` string, required
  - `user_id` number, required
  - `name` string, required
  - `email` string, required
  - `roles` string[], required

## Other responses

- `401` — Invalid credentials

---

[API](https://skmtc.dev/tonewow/apis/tonewow-database-api.md) · [All operations](https://skmtc.dev/tonewow/apis/tonewow-database-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tonewow/tonewow-database-api/revisions/f36472974ad4/schema)
