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

# login

`POST /user/login`

login

## Request body

- MessageLoginReq
  - `userName` string, required
  - `userPassword` string, required

## Response `200`

OK

- object
  - `code` integer
  - `data` object
    - `passwordExpired` boolean
    - `tenantId` string
    - `token` string
    - `userId` string
  - `message` string

## Other responses

- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.net/pingcap/apis/em-ui-api.md) · [All operations](https://skmtc.net/pingcap/apis/em-ui-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pingcap/em-ui-api/versions/631e4b26b7e8/schema)
