cURL
curl --request POST \ --url https://api.example.com/v1/profile/security/2fa/enable \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "method": "app", "code": "<string>", "phone": "<string>" } '
{ "backup_codes": [ "12345678", "87654321" ], "recovery_key": "ABCD-EFGH-IJKL-MNOP" }
Enable two-factor authentication
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
2FA method to enable
app
sms
email
Verification code
Phone number for SMS method
2FA enabled successfully
One-time use backup codes
Recovery key for account access