Top risk subjects
curl --request GET \
--url https://api.truthlocks.com/v1/risk/dashboard/top-subjects \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/risk/dashboard/top-subjects', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/risk/dashboard/top-subjects"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/risk/dashboard/top-subjects"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"subjects": [
{
"subject_id": "<string>",
"subject_type": "<string>",
"signal_count": 123,
"max_score": 123,
"latest_decision": "<string>",
"latest_at": "2023-11-07T05:31:56Z"
}
]
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Risk operations
Read most active risk subjects
Top risk subjects
GET
/
v1
/
risk
/
dashboard
/
top-subjects
Top risk subjects
curl --request GET \
--url https://api.truthlocks.com/v1/risk/dashboard/top-subjects \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/risk/dashboard/top-subjects', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/risk/dashboard/top-subjects"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/risk/dashboard/top-subjects"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"subjects": [
{
"subject_id": "<string>",
"subject_type": "<string>",
"signal_count": 123,
"max_score": 123,
"latest_decision": "<string>",
"latest_at": "2023-11-07T05:31:56Z"
}
]
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Returns up to 100 subjects ordered by signal count and then maximum score. It is not a ranking by average risk, and period or sort_by overrides are not implemented. A null latest_decision means no decision was returned for that subject/type.

