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

# POST /v1/account/2fa/verify

`POST /v1/account/2fa/verify`

Verify2FA 验证 TOTP 码（登录后或开启时确认）

## Request body

- AccountV1Verify2FARequest
  - `code` string — TOTP 验证码（6 位数字）或备份码
  - `portal` string — Login portal: console=user console, admin=admin console; empty defaults to console.
  - `rememberMe` boolean — 登录流程中沿用第一步的长期有效选择；开启 2FA 确认流程忽略该字段。
  - `twoFaToken` string — 登录流程中 two_fa_token（若为登录验证则必填）

## Response `200`

OK

- AccountV1Verify2FAReply
  - `accessToken` string — 验证成功后签发的 access_token（登录流程）
  - `enabled` boolean — 是否为开启 2FA 时的确认（true 表示开启成功）
  - `expiresAt` string, date-time
  - `refreshToken` string — 刷新令牌（登录流程）

---

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