---
title: "Initialize TOTP setup"
method: POST
path: "/totp/setup"
tags: ["auth"]
---

# Initialize TOTP setup

`POST /totp/setup`

## Request body

- TotpSetupRequest
  - `username` string

## Response `200`

Setup details

- TotpSetupResponse
  - `username` string
  - `secret` string
  - `provisioning_uri` string

---

[API](https://skmtc.dev/sphireinc/apis/foundry-api.md) · [All operations](https://skmtc.dev/sphireinc/apis/foundry-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sphireinc/foundry-api/revisions/3696c13096d0/schema)
