---
title: "Enable Two-Factor Authentication"
method: POST
path: "/api/auth/two-factor/enable"
tags: ["Authentication"]
---

# Enable Two-Factor Authentication

`POST /api/auth/two-factor/enable`

## Request

- Base URL: `https://flowdot.ai/api`
- URL: `https://flowdot.ai/api/api/auth/two-factor/enable`
- Auth: HTTP bearer

Generate 2FA secret and QR code for authenticator app setup.

## Response `200`

Successful response

- unknown

## Other responses

- `400`: 2FA already enabled
- `401`: Unauthenticated

---

[API](https://skmtc.dev/flowdot/apis/flowdot-api.md) · [All operations](https://skmtc.dev/flowdot/apis/flowdot-api/llms.txt) · [OpenAPI document](https://skmtc.dev/flowdot/apis/flowdot-api/revisions/93f63cc9c775?raw)
