Obtener ventanas de velocidad
curl --request GET \
--url https://api.truthlocks.com/v1/risk/velocity/{subject_id} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/risk/velocity/{subject_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/risk/velocity/{subject_id}"
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/velocity/{subject_id}"
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))
}{
"subject_id": "<string>",
"windows": [
{
"window": "<string>",
"count": 123,
"action": "<string>"
}
]
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Puntuación de velocidad
Obtener ventanas de velocidad
Recuperar los recuentos de la ventana móvil actual y las puntuaciones de velocidad para todos los tipos de acción rastreados de un sujeto.
GET
/
v1
/
risk
/
velocity
/
{subject_id}
Obtener ventanas de velocidad
curl --request GET \
--url https://api.truthlocks.com/v1/risk/velocity/{subject_id} \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/risk/velocity/{subject_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/risk/velocity/{subject_id}"
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/velocity/{subject_id}"
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))
}{
"subject_id": "<string>",
"windows": [
{
"window": "<string>",
"count": 123,
"action": "<string>"
}
]
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Devuelve las ventanas de velocidad actuales para un sujeto en todos los tipos de acción rastreados. Cada tipo de acción incluye recuentos para las cuatro ventanas móviles (1 m, 5 m, 1 h, 24 h) y la puntuación de velocidad calculada.
Utilice este endpoint para comprobar el perfil de velocidad actual de un sujeto sin registrar una nueva acción. Consulte la guía de puntuación de velocidad y anomalías para el modelo de puntuación y los patrones de integración.
Respuesta
Lista de tipos de acciones rastreadas para este sujeto. Cada entrada incluye
action_type, windows (con recuentos de 1m, 5m, 1h, 24h) y velocity_score.
