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

# User login

`POST /login`

Authenticate a user and create a new session.

## Request body

- DtoLoginRequest
  - `password` string, required
  - `username` string, required

## Response `200`

OK

## Other responses

- `400` — invalid request
- `401` — invalid credentials
- `413` — payload too large
- `500` — internal server error

---

[API](https://skmtc.net/datazip-inc/apis/olake-ui-api.md) · [All operations](https://skmtc.net/datazip-inc/apis/olake-ui-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datazip-inc/olake-ui-api/revisions/f1bcf21b1556/schema)
