provider Totp POST /v1/totps/recovery_codes
@utdk/stytch /v1/totps/recovery_codes
Recoverycodes
Retrieve the recovery codes for a TOTP instance tied to a User.

Try it

Authentication
Configure credentials for Stytch API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

apiTotpV1Recoverycodes
POST/v1/totps/recovery_codes
Retrieve the recovery codes for a TOTP instance tied to a User.

Input

required

The `user_id` of an active user the TOTP registration should be tied to. You may use an `external_id` here if one is set for the user.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import stytch from '@utdk/stytch';

await stytch.apiTotpV1Recoverycodes()