---
title: "Register"
method: POST
path: "/api/v1/auth/register"
tags: ["auth"]
---

# Register

`POST /api/v1/auth/register`

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

注册新用户。

需先通过 POST /api/v1/auth/send-code 获取邮箱验证码。
免费套餐自动赠送 500 信用点（≈20次回测）。
✅ 注册即签发 API Key — 仅显示一次，请立即保存。

1.3 错误归一：所有错误分支返回相同消息，防止邮箱枚举。

## Request body

- RegisterRequest: 注册请求 — 邮箱 + 验证码 必填
  - `name` string: 用户名/昵称（选填）
  - `email` string, required: 邮箱（必填，需先获取验证码）
  - `verification_code` string, required: 邮箱验证码（6位数字）
  - `plan` string: 套餐: free/basic/pro/enterprise

## Response `200`

Successful Response

- RegisterResponse: 注册响应 — 注册即签发 API Key
  - `status` string, required
  - `api_key` string, nullable
  - `user_id` string, nullable
  - `credits` integer, nullable
  - `plan` 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)
