Enable MFA
curl --request POST \
--url https://app.yampi.ai/api/v1/profile/mfa \
--header 'api_access_token: <api-key>'const options = {method: 'POST', 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.post(url, headers=headers)
print(response.text){
"provisioning_url": "<string>",
"secret": "<string>"
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{}Profile
Enable MFA
Start MFA setup. Returns the TOTP provisioning URL and secret. Fails if MFA is already enabled.
POST
/
api
/
v1
/
profile
/
mfa
Enable MFA
curl --request POST \
--url https://app.yampi.ai/api/v1/profile/mfa \
--header 'api_access_token: <api-key>'const options = {method: 'POST', 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.post(url, headers=headers)
print(response.text){
"provisioning_url": "<string>",
"secret": "<string>"
}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{}