---
title: "Totp Setup"
method: POST
path: "/api/v1/auth/local/totp/setup"
tags: ["local-auth"]
---

# Totp Setup

`POST /api/v1/auth/local/totp/setup`

## Headers

- `Authorization` string, nullable

## Response `200`

Successful Response

- TotpSetupResponse
  - `secret` string, required
  - `otpauth_url` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-19** `d199def19a79` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/xenovia/apis/controlplane/changes/api/v1/auth/local/totp/setup/post.md)

---

[API](https://skmtc.dev/xenovia/apis/controlplane.md) · [All operations](https://skmtc.dev/xenovia/apis/controlplane/llms.txt) · [OpenAPI document](https://skmtc.dev/xenovia/apis/controlplane/revisions/b20a3bdd6219?raw)
