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

# POST /api/v1/login

`POST /api/v1/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

---

[API](https://skmtc.dev/mattermost/apis/focalboard-server.md) · [All operations](https://skmtc.dev/mattermost/apis/focalboard-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mattermost/focalboard-server/revisions/ea12e9720c44/schema)
