---
title: "Setup TOTP"
method: POST
path: "/users/totp/setup"
tags: ["Users"]
---

# Setup TOTP

`POST /users/totp/setup`

Initiates TOTP setup by generating a secret and QR code.

## Response `200`

TOTP setup initiated with secret and QR code.

## Other responses

- `400` — TOTP is already enabled.
- `404` — User not found.
- `500` — Failed to setup TOTP.

---

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