Enable 2Fa
curl --request POST \
--url https://api.example.com/api/v1/auth/2fa/enable \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/auth/2fa/enable', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/api/v1/auth/2fa/enable"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"secret": "<string>",
"qr_code_uri": "<string>"
}Auth
Enable 2Fa
Enable 2FA and get QR code for scanning.
POST
/
api
/
v1
/
auth
/
2fa
/
enable
Enable 2Fa
curl --request POST \
--url https://api.example.com/api/v1/auth/2fa/enable \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/auth/2fa/enable', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/api/v1/auth/2fa/enable"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"secret": "<string>",
"qr_code_uri": "<string>"
}