Get MFA status
Get the MFA status of an activity for one user or all voting users.
POST
https://api.0xkey.io
/
public
/
v1
/
query
/
get_mfa_status
Get MFA status
curl --request POST \
--url https://api.0xkey.io/public/v1/query/get_mfa_status \
--header 'Content-Type: application/json' \
--header 'X-Stamp: <api-key>' \
--data '
{
"organizationId": "<string>",
"activityId": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-Stamp': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({organizationId: '<string>', activityId: '<string>'})
};
fetch('https://api.0xkey.io/public/v1/query/get_mfa_status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.0xkey.io/public/v1/query/get_mfa_status"
payload = {
"organizationId": "<string>",
"activityId": "<string>"
}
headers = {
"X-Stamp": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"mfaStatuses": [
{
"mfaPolicyId": "<string>",
"userId": "<string>",
"satisfied": true,
"satisfiedMethods": [
{
"type": "AUTHENTICATION_TYPE_EMAIL_OTP",
"id": "<string>"
}
],
"requiredMethods": [
{
"any": [
{
"type": "AUTHENTICATION_TYPE_EMAIL_OTP",
"id": "<string>"
}
]
}
]
}
]
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}⌘I
Get MFA status
curl --request POST \
--url https://api.0xkey.io/public/v1/query/get_mfa_status \
--header 'Content-Type: application/json' \
--header 'X-Stamp: <api-key>' \
--data '
{
"organizationId": "<string>",
"activityId": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-Stamp': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({organizationId: '<string>', activityId: '<string>'})
};
fetch('https://api.0xkey.io/public/v1/query/get_mfa_status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.0xkey.io/public/v1/query/get_mfa_status"
payload = {
"organizationId": "<string>",
"activityId": "<string>"
}
headers = {
"X-Stamp": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"mfaStatuses": [
{
"mfaPolicyId": "<string>",
"userId": "<string>",
"satisfied": true,
"satisfiedMethods": [
{
"type": "AUTHENTICATION_TYPE_EMAIL_OTP",
"id": "<string>"
}
],
"requiredMethods": [
{
"any": [
{
"type": "AUTHENTICATION_TYPE_EMAIL_OTP",
"id": "<string>"
}
]
}
]
}
]
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}