Skip to main content
POST
Enable 2FA

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
method
enum<string>
required

2FA method to enable

Available options:
app,
sms,
email
code
string
required

Verification code

phone
string

Phone number for SMS method

Response

200 - application/json

2FA enabled successfully

backup_codes
string[]

One-time use backup codes

recovery_key
string

Recovery key for account access