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

# User login

`POST /users/login`

Authenticates a user and returns a JWT.

## Request body

- object
  - `username` string
  - `password` string

## Response `200`

Login successful.

## Other responses

- `400` — Invalid username or password.
- `401` — Invalid username or password.
- `403` — Password authentication is currently disabled.
- `429` — Too many login attempts.
- `500` — Login failed.

---

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