---
title: "POST /api/users/@me/mfa/totp/enable/"
method: POST
path: "/api/users/@me/mfa/totp/enable/"
tags: ["api"]
---

# POST /api/users/@me/mfa/totp/enable/

`POST /api/users/@me/mfa/totp/enable/`

## Request body

- TotpEnableSchema
  - `password` string, required
  - `code` string
  - `secret` string

## Response `200`

- TokenWithBackupCodesResponse
  - `token` string, required
  - `backup_codes` BackupCode[], required
    - `code` string, required
    - `consumed` boolean, required

## Other responses

- `400`
- `404`

---

[API](https://skmtc.net/spacebarchat/apis/spacebar-server.md) · [All operations](https://skmtc.net/spacebarchat/apis/spacebar-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spacebarchat/spacebar-server/versions/5411ecffc184/schema)
