---
title: "Recover Key"
method: POST
path: "/api/v1/auth/recover"
tags: ["auth"]
---

# Recover Key

`POST /api/v1/auth/recover`

## 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/recover`
- Auth: none declared

忘记 Key 恢复 — 降级为网页引导（1.4）。

不再执行吊销+重签，改为引导用户登录 ticktest.cn 控制台管理 API Key。

## Request body

- RecoverRequest: Key恢复 — 验证身份并签发新Token
  - `email` string, required: 注册时使用的邮箱
  - `verification_code` string, required: 邮箱验证码（6位数字）

## Response `200`

Successful Response

- RecoverResponse: Key恢复响应
  - `status` string, required
  - `token` string, nullable
  - `token_prefix` string, nullable
  - `user_id` string, nullable
  - `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)
