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

# Authenticate user

`POST /auth/login`

## Request body

- LoginRequest
  - `username` string, required
  - `password` string, required

## Response `200`

Token information

- LoginResponse
  - `token` string

## Other responses

- `400` — Server cannot execute request due to something that is perceived to be a client error
- `401` — Unauthenticated, no token is provided or token is invalid
- `500` — Internal server error

---

[API](https://skmtc.net/anaconda/apis/anaconda-server-api.md) · [All operations](https://skmtc.net/anaconda/apis/anaconda-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/anaconda/anaconda-server-api/versions/6aef0cb7a151/schema)
