Users

Get backup codes for multi-factor authentication

Generate and retrieve new backup codes for account recovery. Requires sudo mode verification. Old codes are invalidated.

post/users/@me/mfa/backup-codes

Request body

regenerateboolean required

Whether to regenerate backup codes

passwordstring
mfa_method'totp' | 'webauthn'

MFA method to use for verification

mfa_codestring

MFA verification code from an authenticator app

webauthn_responseobject

WebAuthn authentication response

webauthn_challengestring

WebAuthn challenge string

Response

Success

Changes

No recorded changes to this endpoint across all 1 revision of this API.