Rest API endpoints for multi factor authentication

I can't figure out the endpoints for mfa?

I tried the following format but getting "404 page not found"

const response = await fetch(${baseUrl}/auth/v1/mfa/enroll, {
method: 'POST',
headers: new Headers({
'Content-Type': 'application/json',
'apikey': apiKey || ''
}),
body: JSON.stringify({
factorType: 'totp'
})
});
Was this page helpful?