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

# Send Verification Code

`POST /api/v1/auth/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/send-code`
- Auth: none declared

向指定邮箱发送 6 位数字验证码（{TTL} 分钟内有效）。

用于注册时的邮箱验证，防止虚假邮箱刷信用点。
同一邮箱可多次获取验证码，以最新一条为准。

防滥用三层防护（1.5）：
  层零 — 全局熔断：1分钟内超100次全局请求 → 拒发（不发邮件）
  层一 — 同邮箱冷静期：60秒内重复 → 返回success但不发邮件
  层二 — 正常发码：通过全部检查后才发邮件

## Request body

- SendCodeRequest: 发送验证码请求
  - `email` string, required: 接收验证码的邮箱地址（必填）

## 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)
