---
title: "Log In 🔓"
method: POST
path: "/api/v1/user/login"
tags: ["User"]
---

# Log In 🔓

`POST /api/v1/user/login`

Authenticate and log in to your account.
You can use email or username to log in.

## Request body

- UserLoginDTO
  - `email` string, email, nullable
  - `username` string, nullable
  - `password` string, required

## Response `200`

Access and refresh tokens

- TokenResponse
  - `access_token` string, required
  - `refresh_token` string, required

## Other responses

- `400` — The request is invalid.
- `401` — Authentication required.
- `422` — Validation error. Please check your input.

---

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