Get the live flagged history records cited by a Praxis Shield incident
curl --request GET \
--url https://pria.praxislxp.com/api/admin/security/threats/{incidentId}/history \
--header 'x-access-token: <api-key>'import requests
url = "https://pria.praxislxp.com/api/admin/security/threats/{incidentId}/history"
headers = {"x-access-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-access-token': '<api-key>'}};
fetch('https://pria.praxislxp.com/api/admin/security/threats/{incidentId}/history', 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/security/threats/{incidentId}/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-access-token: <api-key>"
],
]);
$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/security/threats/{incidentId}/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-access-token", "<api-key>")
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/security/threats/{incidentId}/history")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/admin/security/threats/{incidentId}/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"incidentId": "<string>",
"histories": [
{
"_id": "<string>",
"input": "<string>",
"output": "<string>",
"tools": "<unknown>",
"status": "<string>",
"created": "2023-11-07T05:31:56Z",
"type": "<string>",
"userEmail": "<string>",
"user": "<string>"
}
]
}Admin
Get the live flagged history records cited by a Praxis Shield incident
Returns the live history record(s) referenced by the incident’s evidence (deduplicated). Mounted under the admin gate (isAdmin) and RAP-scoped via the institutions.list entitlement (super bypasses): the caller must manage at least one of the incident’s institutions. Only inert-safe fields are projected (never secrets, embeddings, or full payloads). The input/output/tools text is attacker-influenced and MUST be rendered INERT by the client.
GET
/
api
/
admin
/
security
/
threats
/
{incidentId}
/
history
Get the live flagged history records cited by a Praxis Shield incident
curl --request GET \
--url https://pria.praxislxp.com/api/admin/security/threats/{incidentId}/history \
--header 'x-access-token: <api-key>'import requests
url = "https://pria.praxislxp.com/api/admin/security/threats/{incidentId}/history"
headers = {"x-access-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-access-token': '<api-key>'}};
fetch('https://pria.praxislxp.com/api/admin/security/threats/{incidentId}/history', 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/security/threats/{incidentId}/history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-access-token: <api-key>"
],
]);
$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/security/threats/{incidentId}/history"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-access-token", "<api-key>")
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/security/threats/{incidentId}/history")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pria.praxislxp.com/api/admin/security/threats/{incidentId}/history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"incidentId": "<string>",
"histories": [
{
"_id": "<string>",
"input": "<string>",
"output": "<string>",
"tools": "<unknown>",
"status": "<string>",
"created": "2023-11-07T05:31:56Z",
"type": "<string>",
"userEmail": "<string>",
"user": "<string>"
}
]
}Was this page helpful?
Update a Praxis Shield incident (status / severity / categories)Add a reviewer note to a Praxis Shield incident
⌘I