---
title: "用户登录"
method: POST
path: "/api/login"
tags: ["用户认证"]
---

# 用户登录

`POST /api/login`

基于手机号和验证码的用户登录

## Response `200`

登录成功

- object
  - `code` integer — 状态码
  - `message` string — 响应消息
  - `data` object, nullable — 响应数据
    - `id` integer — 用户ID
    - `mobile` string — 手机号
    - `name` string — 姓名
    - `company` string — 公司名称

## Other responses

- `400` — 登录失败

---

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