---
title: "Setup two-factor authentication"
method: POST
path: "/auth/2fa/setup"
tags: ["Auth"]
---

# Setup two-factor authentication

`POST /auth/2fa/setup`

## Request

- Base URL: `https://orbitus.netcorecloud.com`
- URL: `https://orbitus.netcorecloud.com/auth/2fa/setup`
- Auth: HTTP bearer

Generates a TOTP secret, QR code, and provisioning URI.

## Response `200`

2FA setup data.

- TwoFactorSetupResponse
  - `secret` string: TOTP secret key.
  - `provisioning_uri` string: OTP auth URI for authenticator apps.
  - `qr_code` string: Base64-encoded QR code image (data URI).

---

[API](https://skmtc.dev/netcorecloud/apis/orbit-router.md) - [All operations](https://skmtc.dev/netcorecloud/apis/orbit-router/llms.txt) - [OpenAPI document](https://skmtc.dev/netcorecloud/apis/orbit-router/revisions/680f0a8ab1a3?raw)
