---
title: "Gets the current status of recovery codes for a user."
method: GET
path: "/v1/users/{userId}/recovery-codes"
tags: ["Accounts"]
---

# Gets the current status of recovery codes for a user.

`GET /v1/users/{userId}/recovery-codes`

## Path parameters

- `userId` integer, required

## Response `200`

OK

- RobloxTwoStepVerificationApiRecoveryCodesStatusResponse — The response for getting the status of recovery codes for a user.
  - `activeCount` integer — The number of unused recovery codes the user has available.
  - `created` string, date-time — The date time the recovery codes were generated at.

## Other responses

- `400` — 2: The user ID is invalid.
- `401` — 0: Authorization has been denied for this request.
- `503` — 7: Two step verification is currently under maintenance.

---

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