---
title: "Get recovery codes"
method: GET
path: "/sdk/{environmentId}/users/mfa/recovery"
tags: ["SDK"]
---

# Get recovery codes

`GET /sdk/{environmentId}/users/mfa/recovery`

## Path parameters

- `environmentId` string, required

## Response `200`

successful operation

- MFAGetRecoveryCodesResponse
  - `count` integer, required — The number of recovery codes available
  - `recoveryCodes` string[], required — Recovery codes for the user to use in case they lose access to their MFA device

## Other responses

- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.net/dynamic/apis/dashboard-api.md) · [All operations](https://skmtc.net/dynamic/apis/dashboard-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dynamic/dashboard-api/versions/aac826315d90/schema)
