---
title: "Admin portal: confirm the first app code; switches sign-in to the app."
method: POST
path: "/api/auth/admin/2fa/totp/enable"
tags: ["Admin portal auth"]
---

# Admin portal: confirm the first app code; switches sign-in to the app.

`POST /api/auth/admin/2fa/totp/enable`

## Request

- Base URL: `https://api.rewritelifestyle.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.rewritelifestyle.ai/api/auth/admin/2fa/totp/enable`
- Auth: HTTP bearer

## Request body

- AdminMfaCodeDto
  - `code` string, required: Code from the authenticator app

## Response `200`

## Changes

- **2026-11-07** `0ddc49451c22`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/changes/api/auth/admin/2fa/totp/enable/post.md)

---

[API](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api.md) - [All operations](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/revisions/0d22636dfcb9?raw)
