Enable 2FA
PUT
/v2/user/mfa/enableLast modified: 3 days ago
Initiates the 2FA (Two-Factor Authentication) enabling process, serving as a pre-enable step.
This phase involves validating the correctness of the provided phone number, specifically for
SMS OTP (One-Time Password), and dispatching the verification code.
To finalize the activation, it is necessary to confirm the 2FA installation. This confirmation is achieved
by utilizing the /v2/user/mfa/verify_installation endpoint, allowing users to validate the 2FA setup,
whether it involves SMS or TOTP (Time-Based One-Time Password) authentication methods.
Request
Query Params
method
enum<string>
required
2FA method (sms, totp)
Allowed values:
smstotp
phone_number
string
required
Phone number
country_code
string
required
Country code (e.g. +1)
Request samples
Responses
OK(200)
Unauthorized(401)
Parameter Error(422)
HTTP Code: 200
Content Type : JSONapplication/json
2FA enabled
Data Schema
object {0}
Example
sms_success
{
"status": "queued"
}
Last modified: 3 days ago