Authorize New 2FA Method
Initiates authorization to add a new 2FA method by verifying identity with an existing method or backup code, returning a value used in the verification step.
Authorizations
API key must be provided in the Authorization header
Body
Existing method type to use for authorization; automatically 'email' when the account has no active methods
sms, totp, email "email"
ID of an existing method to verify with; required for sms/totp when the user has multiple methods of the same type
3
Backup code that skips the send/verify round-trip and grants authorization directly
"ABCD-EFGH-1234"
Response
Returns {success: true, secret} (secret needed for PUT verify step), or {success: true, msg: "Authorization successful."} when a backup code is used.