---
title: "Login the user"
method: POST
path: "/api/login"
tags: ["user"]
---

# Login the user

`POST /api/login`

Login the given user

## Response `200`

OK

- object
  - `user` string
  - `groups` string[]
  - `dba` boolean
  - `domain` string

## Other responses

- `401` — Wrong user or password

## Changes

- **2022-11-14** `d98df61622ee` — 1 breaking, 3 warning, 2 info
  - added required request body
  - deleted the `query` request parameter `logout`
  - deleted the `query` request parameter `password`
  - deleted the `query` request parameter `user`
  - …2 more
- **2020-10-14** `b70359972942` — 1 breaking, 1 warning, 4 info
  - removed the request body
  - removed the optional property `domain` from the response with the `200` status
  - api operation id `auth:login` removed and replaced with `rutil:login`
  - added the new optional `query` request parameter `logout`
  - …2 more

[Change history](https://skmtc.dev/eeditiones/apis/tei-publisher-documentation-and-demo/changes/api/login/post.md)

---

[API](https://skmtc.dev/eeditiones/apis/tei-publisher-documentation-and-demo.md) · [All operations](https://skmtc.dev/eeditiones/apis/tei-publisher-documentation-and-demo/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/eeditiones/tei-publisher-documentation-and-demo/revisions/07216792837f/schema)
