---
title: "POST /api/v1/settings/mfa/enable"
method: POST
path: "/api/v1/settings/mfa/enable"
tags: ["Security"]
---

# POST /api/v1/settings/mfa/enable

`POST /api/v1/settings/mfa/enable`

## Request

- Base URL: `https://app.distr.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://app.distr.sh/api/v1/settings/mfa/enable`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer

Enable MFA for the current user and receive recovery codes

## Request body

- ApiEnableMFARequest
  - `code` string

## Response `200`

OK

- ApiEnableMFAResponse
  - `recoveryCodes` string[]

---

[API](https://skmtc.dev/distr/apis/distr-api-reference.md) - [All operations](https://skmtc.dev/distr/apis/distr-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/distr/apis/distr-api-reference/revisions/7dcafe205f83?raw)
