---
title: "Enable TOTP multi-factor authentication"
method: POST
path: "/users/@me/mfa/totp/enable"
tags: ["Users"]
---

# Enable TOTP multi-factor authentication

`POST /users/@me/mfa/totp/enable`

Enable time-based one-time password (TOTP) MFA on the current account. Returns backup codes for account recovery. Requires sudo mode verification.

## Request body

- EnableMfaTotpRequest
  - `secret` string, required — The TOTP secret key
  - `code` string, required — The TOTP verification code
  - `password` string
  - `mfa_method` 'totp' | 'webauthn' — MFA method to use for verification
  - `mfa_code` string — MFA verification code from an authenticator app
  - `webauthn_response` object — WebAuthn authentication response
  - `webauthn_challenge` string — WebAuthn challenge string

## Response `200`

Success

- MfaBackupCodesResponse
  - `backup_codes` object[], required — List of backup codes
    - `code` string, required — The backup code
    - `consumed` boolean, required — Whether the code has been used

## Other responses

- `400` — Bad Request - The request was malformed or contained invalid data
- `401` — Unauthorized - Authentication is required or the token is invalid
- `403` — Forbidden - You do not have permission to perform this action
- `429` — Too Many Requests - You are being rate limited
- `500` — Internal Server Error - An unexpected error occurred

---

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