---
title: "Confirm TOTP registration"
method: POST
path: "/accounts/confirm-totp-registration"
tags: ["Multi-Factor Authentication"]
---

# Confirm TOTP registration

`POST /accounts/confirm-totp-registration`

Confirms a TOTP registration by validating a code

## Request body

- object
  - `code` string, required — TOTP code
  - `secret` string, required — TOTP secret key

## Response `200`

TOTP registration confirmed successfully

- object
  - `data` object, required
    - `recovery_codes` string[]

## Other responses

- `400` — Bad request
- `401` — Unauthorized

---

[API](https://skmtc.net/quivaworks/apis/quiva-ai-gateway.md) · [All operations](https://skmtc.net/quivaworks/apis/quiva-ai-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/quivaworks/quiva-ai-gateway/revisions/771d118bd4d1/schema)
