---
title: "Get the recovery codes for the authenticated user's 2FA"
method: GET
path: "/user/two-factor-recovery-codes"
tags: ["Users"]
---

# Get the recovery codes for the authenticated user's 2FA

`GET /user/two-factor-recovery-codes`

Returns the user's two-factor recovery codes — single-use codes
the user can fall back to if they lose access to their
authenticator app. Treat the response as sensitive; the codes
should be displayed once and stored by the user offline.

## Response `200`

The recovery codes were successfully retrieved.

- string[] — A list of single-use recovery codes the user can use to authenticate if they lose access to their second factor.

## Other responses

- `401` — The user is unauthenticated

---

[API](https://skmtc.dev/try/apis/trybe-api.md) · [All operations](https://skmtc.dev/try/apis/trybe-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/try/trybe-api/revisions/f37f92702da5/schema)
