Top-Risikothemen
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
}Risikobetrieb
Aktivste Risikobetreffe lesen
Top-Risikothemen
GET
/
v1
/
risk
/
dashboard
/
top-subjects
Top-Risikothemen
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
}Gibt bis zu 100 Subjekte zurück, sortiert nach Signalanzahl und dann nach maximaler Punktzahl. Es handelt sich nicht um eine Rangfolge nach durchschnittlichem Risiko, und Perioden- oder Sortier-Overrides sind nicht implementiert. Ein null latest_decision bedeutet, dass für dieses Subjekt/diesen Typ keine Entscheidung zurückgegeben wurde.

