Show MFA status
curl --request GET \
--url https://app.yampi.ai/api/v1/profile/mfa \
--header 'api_access_token: <api-key>'const options = {method: 'GET', headers: {api_access_token: '<api-key>'}};
fetch('https://app.yampi.ai/api/v1/profile/mfa', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/profile/mfa"
headers = {"api_access_token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"feature_available": true,
"enabled": true,
"backup_codes_generated": true
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}Profile
Show MFA status
Get whether MFA is available and enabled for the authenticated user, and whether backup codes were generated.
GET
/
api
/
v1
/
profile
/
mfa
Show MFA status
curl --request GET \
--url https://app.yampi.ai/api/v1/profile/mfa \
--header 'api_access_token: <api-key>'const options = {method: 'GET', headers: {api_access_token: '<api-key>'}};
fetch('https://app.yampi.ai/api/v1/profile/mfa', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/profile/mfa"
headers = {"api_access_token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"feature_available": true,
"enabled": true,
"backup_codes_generated": true
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}