---
title: "Verify 2Fa Setup"
method: POST
path: "/auth/2fa/verify-setup"
tags: ["internal"]
---

# Verify 2Fa Setup

`POST /auth/2fa/verify-setup`

## Request

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

Verify 2FA setup with the first code from the authenticator app.

Returns recovery codes that the user must save.

## Request body

- TwoFactorVerifyRequest: Request to verify 2FA setup or code.
  - `code` string, required

## Response `200`

Successful Response

- TwoFactorVerifySetupResponse: Response after successful 2FA setup verification.
  - `success` boolean, required
  - `recovery_codes` string[], required

## Other responses

- `422`: Validation Error

---

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