Skip to main content
POST
/
v1
/
profile
/
security
/
2fa
/
enable
{
  "backup_codes": [
    "12345678",
    "87654321"
  ],
  "recovery_key": "ABCD-EFGH-IJKL-MNOP"
}

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