---
title: "Enable TOTP"
method: POST
path: "/totp/enable"
tags: ["TOTP Plugin"]
---

# Enable TOTP

`POST /totp/enable`

Enables TOTP two-factor authentication for the authenticated user. Returns the TOTP URI and backup codes.

## Response `200`

OK

- EnableResponse
  - `backup_codes` string[], required
  - `totp_uri` string, required

## Changes

- **2026-07-09** `dad8e2644615` — 1 info
  - endpoint added
- **2026-07-08** `d2f9387037c5` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/authula/apis/authula-api/changes/totp/enable/post.md)

---

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