---
title: "Log in with email + password"
method: POST
path: "/auth/login"
tags: ["auth"]
---

# Log in with email + password

`POST /auth/login`

## Request

- Base URL: `https://task.igordudnek.com/api/v1`
- URL: `https://task.igordudnek.com/api/v1/auth/login`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `lt_access`

Returns the access + refresh JWT pair and sets the lt_access HttpOnly cookie.

## Request body

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

## Response `200`

OK

- TokenPair
  - `access_token` string, required
  - `expires_in` integer
  - `refresh_token` string, required

---

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