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

---

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