---
title: "Toggle 2Fa"
method: POST
path: "/profile/security/2fa"
tags: ["profile", "profile", "security"]
---

# Toggle 2Fa

`POST /profile/security/2fa`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/profile/security/2fa`
- Auth: none declared

Enable or disable 2FA for user account.

## Request body

- TwoFASettingRequest
  - `enabled` boolean, required

## Response `200`

Successful Response

- TwoFASettingResponse
  - `two_fa_enabled` boolean, required
  - `message` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
