Read the MFA audit log for a target user (super-only)
curl --request GET \
--url https://pria.praxislxp.com/api/admin/users/{userId}/mfa-audit \
--header 'Authorization: Bearer <token>'import requests
url = "https://pria.praxislxp.com/api/admin/users/{userId}/mfa-audit"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://pria.praxislxp.com/api/admin/users/{userId}/mfa-audit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pria.praxislxp.com/api/admin/users/{userId}/mfa-audit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://pria.praxislxp.com/api/admin/users/{userId}/mfa-audit"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://pria.praxislxp.com/api/admin/users/{userId}/mfa-audit")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/admin/users/{userId}/mfa-audit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"events": [
{
"id": "<string>",
"event": "mfa.code.verified",
"user": "<string>",
"actor": "<string>",
"ip": "<string>",
"ua": "<string>",
"meta": {},
"created": "2023-11-07T05:31:56Z"
}
]
}Admin
Read the MFA audit log for a target user (super-only)
Returns up to limit (default 50, max 200) MFA audit events for the
target user, ordered by created descending. Use the before
parameter (ISO timestamp) for pagination — pass the oldest created
from the previous page to fetch the next.
GET
/
api
/
admin
/
users
/
{userId}
/
mfa-audit
Read the MFA audit log for a target user (super-only)
curl --request GET \
--url https://pria.praxislxp.com/api/admin/users/{userId}/mfa-audit \
--header 'Authorization: Bearer <token>'import requests
url = "https://pria.praxislxp.com/api/admin/users/{userId}/mfa-audit"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://pria.praxislxp.com/api/admin/users/{userId}/mfa-audit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pria.praxislxp.com/api/admin/users/{userId}/mfa-audit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://pria.praxislxp.com/api/admin/users/{userId}/mfa-audit"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://pria.praxislxp.com/api/admin/users/{userId}/mfa-audit")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/admin/users/{userId}/mfa-audit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"events": [
{
"id": "<string>",
"event": "mfa.code.verified",
"user": "<string>",
"actor": "<string>",
"ip": "<string>",
"ua": "<string>",
"meta": {},
"created": "2023-11-07T05:31:56Z"
}
]
}Authorizations
JWT token passed in authorization header
Path Parameters
Query Parameters
Required range:
1 <= x <= 200ISO-8601 timestamp; results with created < before are returned.
Was this page helpful?
⌘I