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.
password
User password
method
issuer
Custom issuer for the TOTP URI
Response
Successful response
method
The 2FA method that was enabled.
totpURI
TOTP URI for authenticator app setup. Only present when method is 'totp'.
backupCodes
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