---
title: "Login handler"
method: POST
path: "/api/login"
tags: ["auth"]
---

# Login handler

`POST /api/login`

## Request body

- LoginRequest — Login request payload.
  - `password` string, required — Password for authentication
  - `username` string, required — Username for authentication

## Response `200`

Login attempt result

- LoginResponse — Login response.
  - `message` string, required — Human-readable message describing the result
  - `success` boolean, required — Whether the login was successful

## Other responses

- `500` — Internal server error

---

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