---
title: "Regenerate Totp Recovery Codes"
method: POST
path: "/auth/totp/recovery-codes"
tags: ["General APIs with JWT"]
---

# Regenerate Totp Recovery Codes

`POST /auth/totp/recovery-codes`

## Request

- Base URL: `https://lium.io/api`
- URL: `https://lium.io/api/auth/totp/recovery-codes`
- Auth: HTTP bearer

A new set of recovery codes for a current authenticator code; the old set stops working.

## Request body

- TotpCodeRequest
  - `code` string, required

## Response `200`

Successful Response

- TotpRecoveryCodesResponse
  - `recovery_codes` string[], required

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-12** `ea95bc2e1a0f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/lium/apis/lium-backend-api/changes/auth/totp/recovery-codes/post.md)

---

[API](https://skmtc.dev/lium/apis/lium-backend-api.md) - [All operations](https://skmtc.dev/lium/apis/lium-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lium/apis/lium-backend-api/revisions/e13b07d90cfc?raw)
