Skip to main content
POST
/
v1
/
account
/
two-factor
Enable two-factor authentication and return QR URL and recovery codes
curl --request POST \
  --url https://dev.flextell.ai/api/v1/account/two-factor \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "current_password": "<string>"
}
'
{
  "success": "<string>",
  "data": {
    "is_enabled": true,
    "is_confirmed": true,
    "qr_code_url": "<string>",
    "recovery_codes": "<string>"
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
current_password
string
required

The current account password.

Response

success
string
required
data
object
required