Post Two Factor Enable

Enable two factor authentication. Pass method ‘totp’ (default) to set up an authenticator app (returns TOTP URI and backup codes), or ‘otp’ to enable email/SMS-based codes immediately.

Authentication

AuthorizationBearer
Bearer token authentication

Request

This endpoint expects an object.
passwordstringRequired
User password
methodstringRequiredDefaults to totp
issuerstring or nullOptional
Custom issuer for the TOTP URI

Response

Successful response
methodenum
The 2FA method that was enabled.
totpURIstring
TOTP URI for authenticator app setup. Only present when method is 'totp'.
backupCodeslist of strings
Recovery backup codes. Only present when method is 'totp'.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error