---
title: "Enable"
method: POST
path: "/auth/2fa/enable"
tags: ["two-factor"]
---

# Enable

`POST /auth/2fa/enable`

## Request

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

Confirms setup with a code from the app, turns 2FA on, and returns the one-time recovery codes (shown once).

## Request body

- CodeBody
  - `code` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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