---
title: "Enable a previously enrolled totp setting."
method: POST
path: "/user/settings/totp/enable"
tags: ["user"]
---

# Enable a previously enrolled totp setting.

`POST /user/settings/totp/enable`

Enables a previously enrolled totp setting by providing a totp passcode.

## Request body

- UserTOTPPasscode
  - `passcode` string

## Response `200`

Successfully enabled

- ModelsMessage
  - `message` string — A standard message.

## Other responses

- `400` — Something's invalid.
- `404` — User does not exist.
- `412` — TOTP is not enrolled.
- `500` — Internal server error.

---

[API](https://skmtc.net/go-vikunja/apis/vikunja-api.md) · [All operations](https://skmtc.net/go-vikunja/apis/vikunja-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/go-vikunja/vikunja-api/revisions/feb3f68bbdf1/schema)
