Skip to main content
GET
/
api
/
subjects
/
risk_assessment_report
Get risk assessment report
curl --request GET \
  --url http://localhost/api/api/subjects/risk_assessment_report \
  --header 'Authorization: Bearer <token>'
import requests

url = "http://localhost/api/api/subjects/risk_assessment_report"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('http://localhost/api/api/subjects/risk_assessment_report', 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 => "http://localhost/api/api/subjects/risk_assessment_report",
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 := "http://localhost/api/api/subjects/risk_assessment_report"

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("http://localhost/api/api/subjects/risk_assessment_report")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("http://localhost/api/api/subjects/risk_assessment_report")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{}

Authorizations

Authorization
string
header
required

JWT token obtained from AWS Cognito or custom authentication service

Query Parameters

client_subject_id
string

Filter by client subject ID.

ordering
string

Order results by field. Available fields: daily_score, subject_lowest_score, true_hit_date, subject_name, client_subject_id. Prefix with "-" for descending order. Example: "-daily_score" for highest to lowest daily score.

rules_affected
string

Filter by rule numbers (comma-separated). Example: "1,3,5" returns subjects that violate rule 1 OR 3 OR 5.

subject_name
string

Filter by subject name.

Response

200 - application/json

Risk assessment report retrieved successfully.

Paginated risk assessment report