Principaux sujets à risque
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
}Opérations de risque
Lire les sujets à risque les plus actifs
Principaux sujets à risque
GET
/
v1
/
risk
/
dashboard
/
top-subjects
Principaux sujets à risque
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
}Renvoie jusqu’à 100 sujets classés par nombre de signaux, puis par score maximal. Ce n’est pas un classement par risque moyen, et les remplacements de période ou de tri ne sont pas implémentés. Une décision_latest nulle signifie qu’aucune décision n’a été renvoyée pour ce sujet/type.

