Start the enrolment an organization's MFA policy requires
curl --request POST \
--url https://app.trustivan.com/api/v1/auth/mfa/required-enrollment \
--header 'Content-Type: application/json' \
--data '
{
"challenge_token": "<string>"
}
'import requests
url = "https://app.trustivan.com/api/v1/auth/mfa/required-enrollment"
payload = { "challenge_token": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({challenge_token: '<string>'})
};
fetch('https://app.trustivan.com/api/v1/auth/mfa/required-enrollment', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/auth/mfa/required-enrollment"
payload := strings.NewReader("{\n \"challenge_token\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"secret": "<string>",
"provisioning_uri": "<string>"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Start the MFA enrolment the policy requires
Reached from a login that answered mfa_enrollment_required. Public
and rate limited like /auth/mfa/verify: the caller has passed the
password and holds no session, and the challenge token is the only
authority. Returns the TOTP secret once.
POST
/
auth
/
mfa
/
required-enrollment
Start the enrolment an organization's MFA policy requires
curl --request POST \
--url https://app.trustivan.com/api/v1/auth/mfa/required-enrollment \
--header 'Content-Type: application/json' \
--data '
{
"challenge_token": "<string>"
}
'import requests
url = "https://app.trustivan.com/api/v1/auth/mfa/required-enrollment"
payload = { "challenge_token": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({challenge_token: '<string>'})
};
fetch('https://app.trustivan.com/api/v1/auth/mfa/required-enrollment', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/auth/mfa/required-enrollment"
payload := strings.NewReader("{\n \"challenge_token\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"secret": "<string>",
"provisioning_uri": "<string>"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}