---
title: "Enroll Totp"
method: POST
path: "/v1/auth/mfa/enroll/totp"
tags: ["auth"]
---

# Enroll Totp

`POST /v1/auth/mfa/enroll/totp`

## Request

- Base URL: `https://api.sonenta.dev`
- URL: `https://api.sonenta.dev/v1/auth/mfa/enroll/totp`
- Auth: none declared

## Request body

- EnrollTotpIn
  - `current_password` string, required

## Response `200`

Successful Response

- EnrollTotpOut
  - `secret` string, required
  - `otpauth_url` string, required

## Other responses

- `422`: Validation Error

---

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