---
title: "Login Send Code"
method: POST
path: "/api/v1/auth/login/send-code"
tags: ["auth"]
---

# Login Send Code

`POST /api/v1/auth/login/send-code`

## Request

- Base URL: `https://api.ticktest.cn` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ticktest.cn/api/v1/auth/login/send-code`
- Auth: none declared

邮箱验证码登录 — 第一步：发送登录验证码到邮箱。

🔴 人机验证：必须携带 verify_token（通过滑块拼图验证获得）。
无 verify_token 或 token 无效/过期 → 拒绝发送验证码。
防止 AI Agent 绕过前端直接调用 send-code 接口。

适用于控制台 Web UI：用户输入邮箱+验证码，
后端自动判断注册或登录（见 POST /api/v1/auth/login）。

## Request body

- LoginSendCodeRequest: 登录 — 发送验证码请求
  - `email` string, required: 注册时使用的邮箱
  - `verify_token` string, nullable: 人机验证令牌（必填，须先完成滑块拼图验证）

## Response `200`

Successful Response

- SendCodeResponse: 发送验证码响应
  - `status` string, required
  - `message` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ticktest/apis/ticktest-api.md) · [All operations](https://skmtc.dev/ticktest/apis/ticktest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ticktest/apis/ticktest-api/revisions/3e6d69d0eb1e?raw)
