---
title: "Regenerate backup codes"
method: POST
path: "/v2/users/me/mfa/backup-codes"
tags: ["Users"]
---

# Regenerate backup codes

`POST /v2/users/me/mfa/backup-codes`

## Request

- Base URL: `https://api.chat.ethora.com`
- URL: `https://api.chat.ethora.com/v2/users/me/mfa/backup-codes`
- Auth: HTTP bearer

Requires a valid TOTP or backup code. The previous set stops working; the new set is returned once.

## Request body

- object
  - `code` string, required

## Response `200`

`{ success: true, backupCodes: string[] }`

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

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