---
title: "POST /api/users/@me/mfa/codes/"
method: POST
path: "/api/users/@me/mfa/codes/"
tags: ["api"]
deprecated: true
---

# POST /api/users/@me/mfa/codes/

`POST /api/users/@me/mfa/codes/`

> **Deprecated.**

This route is replaced with users/@me/mfa/codes-verification in newer clients

## Request body

- MfaCodesSchema
  - `password` string, required
  - `regenerate` boolean

## Response `200`

- BackupCodeArray — unresolved $ref

## 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/revisions/47dcffd5174f/schema)
