---
title: "POST /v1/account/2fa/activate"
method: POST
path: "/v1/account/2fa/activate"
tags: ["AccountService"]
---

# POST /v1/account/2fa/activate

`POST /v1/account/2fa/activate`

ActivateTOTP 二步验证第二阶段：验证 TOTP code，激活 2FA，返回恢复码（仅展示一次）

## Request body

- AccountV1ActivateTOTPRequest
  - `code` string — TOTP 6 位验证码，用于确认用户已正确配置 Authenticator App

## Response `200`

OK

- AccountV1ActivateTOTPReply
  - `recoveryCodes` string[] — 恢复码明文列表（共 10 个，仅展示一次，用户需自行保存）

---

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