---
title: "Generate the 2FA recovery codes"
method: POST
path: "/v3/me/2fa-recovery-codes"
tags: ["Profile"]
---

# Generate the 2FA recovery codes

`POST /v3/me/2fa-recovery-codes`

Generates the 2FA recovery codes.

## Request body

- TwoFactorCodeRequestModel
  - `twoFactorCode` string, required

## Response `200`

OK

- TwoFactorRecoveryCodesDto
  - `recoveryCodes` string[], required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `409` — Conflict
- `429` — Too Many Requests
- `500` — Server Error

---

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