Risikoereignis normalisieren
curl --request POST \
--url https://api.truthlocks.com/v1/risk/events \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"event_source": "<string>",
"event_type": "<string>",
"subject_id": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({event_source: '<string>', event_type: '<string>', subject_id: '<string>'})
};
fetch('https://api.truthlocks.com/v1/risk/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/risk/events"
payload = {
"event_source": "<string>",
"event_type": "<string>",
"subject_id": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/risk/events"
payload := strings.NewReader("{\n \"event_source\": \"<string>\",\n \"event_type\": \"<string>\",\n \"subject_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"event_id": "<string>",
"signal_id": "<string>"
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Risikosignale
Identitätsereignis normalisieren
Ein rohes Identitätsereignis zur automatischen Normalisierung in ein Risikosignal einreichen. Die Normalisierungsschicht ordnet Plattformereignisse standardisierten Signaltypen mit vorkalibrierten Risikobewertungen zu.
POST
/
v1
/
risk
/
events
Risikoereignis normalisieren
curl --request POST \
--url https://api.truthlocks.com/v1/risk/events \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"event_source": "<string>",
"event_type": "<string>",
"subject_id": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({event_source: '<string>', event_type: '<string>', subject_id: '<string>'})
};
fetch('https://api.truthlocks.com/v1/risk/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/risk/events"
payload = {
"event_source": "<string>",
"event_type": "<string>",
"subject_id": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/risk/events"
payload := strings.NewReader("{\n \"event_source\": \"<string>\",\n \"event_type\": \"<string>\",\n \"subject_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"event_id": "<string>",
"signal_id": "<string>"
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Wie die Normalisierung funktioniert
Wenn Sie ein Identitätsereignis übermitteln, führt die Plattform Folgendes aus:- Zeichnet das Rohereignis im Audit-Trail auf
- Ordnet den
event_typeeinem kanonischen Signaltyp und einem Basisrisikowert zu - Bereichert das Signal mit verfügbaren Metadaten (Aussteller-Vertrauensstufe, Geo, Gerät)
- Speichert einen
risk_signal-Datensatz, der zur Richtlinienauswertung bereit ist
Eingebaute Ereigniszuordnungen
| Ereignistyp | Signaltyp | Basispunktzahl |
|---|---|---|
verification.failed | behavior | 60 |
verification.invalid_sig | behavior | 75 |
login.failed.repeated | ato | 70 |
login.suspicious_geo | geo_anomaly | 65 |
attestation.deepfake_suspect | deepfake | 85 |
session.hijack_suspect | ato | 90 |
behavior akzeptiert.
Antwort
true, wenn das Ereignis einer bekannten Zuordnung entsprach; false, wenn der generische Fallback verwendet wurde.Autorisierungen
Body
application/json

