---
title: "Start the TOTP enrollment a login requires"
method: POST
path: "/api/v1/auth/login/enroll/totp"
tags: ["Auth"]
---

# Start the TOTP enrollment a login requires

`POST /api/v1/auth/login/enroll/totp`

## Request

- Base URL: `https://pcp.example.com`
- URL: `https://pcp.example.com/api/v1/auth/login/enroll/totp`
- Auth: none required

## Request body

- LoginEnrollTOTPRequest: LoginEnrollTOTPRequest schema
  - `enrollment_challenge_id` string, required

## Response `200`

OK

- TOTPEnrollResponse: TOTPEnrollResponse schema
  - `otpauth_uri` string
  - `secret` string

## Other responses

- `400`: Bad Request _(validation or deserialization error)_
- `500`: Internal Server Error _(panics)_
- `default`

---

[API](https://skmtc.dev/plakar/apis/plakar-control-plane-api-v1.md) - [All operations](https://skmtc.dev/plakar/apis/plakar-control-plane-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/plakar/apis/plakar-control-plane-api-v1/revisions/2ac049494a01?raw)
