---
title: "POST /login"
method: POST
path: "/login"
---

# POST /login

`POST /login`

Login user

## Request body

- LoginRequest — LoginRequest is a login request
  - `email` string — If specified, login using email
  - `password` string, required — Password
  - `type` string, required — Type of login, currently must be set to "normal"
  - `username` string — If specified, login using username

## Response `200`

success

- LoginResponse — LoginResponse is a login response
  - `token` string, required — Session token

## Other responses

- `401` — invalid login
- `500` — internal error

## Changes

- **2022-04-13** `8e122d5d731c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/mattermost/apis/focalboard-server/changes/login/post.md)

---

[API](https://skmtc.dev/mattermost/apis/focalboard-server.md) · [All operations](https://skmtc.dev/mattermost/apis/focalboard-server/llms.txt) · [OpenAPI document](https://skmtc.dev/mattermost/apis/focalboard-server/revisions/8e122d5d731c?raw)
