v1

latestOpenAPI 3.0.42026-08-068161,1253.1 MB
Accounts

Clears any existing recovery codes and generates a new batch of recovery codes.

Two step verification recovery codes do not enforce that two step verification must be passed when logging in. At least one two step verification media type must be enabled to trigger the two step verification flow. Recovery codes are intended to be used to pass two step verification when the enabled media type is unavailable.

Recovery codes generated by this endpoint do not have an expiration.

Once a recovery code generated by this endpoint has been used it cannot be used again.

post/v1/users/{userId}/recovery-codes/regenerate

Path parameters

userIdinteger required

The user ID to generate recovery codes for.

Request body

passwordstring

The user's password.

Response

OK

recoveryCodesstring[]

The collection of generated recovery codes.