> ## Documentation Index
> Fetch the complete documentation index at: https://stytch.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Recovery Codes

> Retrieves the recovery codes for the current user's TOTP instance. Calls the `POST /sdk/v1/totps/recovery_codes` endpoint. Requires an active session.

## Returns

**requestId** `String` *required*

**userId** `String` *required*

**totps** `List\<ApiTotpV1TOTP\>` *required*

**properties**

**totpId** `String` *required*

**verified** `Boolean` *required*

**recoveryCodes** `List\<String\>` *required*

**statusCode** `Int` *required*

```swift theme={null}
let response = try await StytchConsumer.totps.recoveryCodes()
```
