---
title: "Enable TOTP 2FA"
method: PUT
path: "/auth/mfa/totp"
tags: ["MFA"]
---

# Enable TOTP 2FA

`PUT /auth/mfa/totp`

Generate a new secret for TOTP.

## Request body

- union — MFA response
  - object
    - `password` string, required
  - object
    - `recovery_code` string, required
  - object
    - `totp_code` string, required

## Response `204`

Success

## Other responses

- `default` — An error occurred.

## Changes

> 6 revisions in range; 3 could not be searched.

- **2026-07-26** `7a23c8b93766` — 1 breaking
  - added `subschema #65, subschema #66, subschema #67, subschema #81, subschema #82, subschema #83, subschema #84, subschema #85, subschema #86, subschema #87, subschema #88, subschema #89, subschema #90, subschema #91, subschema #92, subschema #93, subschema #94, subschema #95` to the response body `oneOf` list for the response status `default`

[Change history](https://skmtc.dev/revolt/apis/revolt-api/changes/auth/mfa/totp/put.md)

---

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