---
title: "Re-create recovery codes"
method: POST
path: "/users/{user_id}/codes"
tags: ["MFA"]
---

# Re-create recovery codes

`POST /users/{user_id}/codes`

Re-creates recovery codes for the MFA enrollment.

## Response `201`

Created

- object
  - `recovery_codes` string[] — A list of recovery codes for the MFA enrollment.

## Other responses

- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/upsun/apis/upsun-com-rest-api.md) · [All operations](https://skmtc.net/upsun/apis/upsun-com-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/upsun/upsun-com-rest-api/revisions/6cc88fde6435/schema)
