Dashboard trends
curl --request GET \
--url https://api.truthlocks.com/v1/risk/dashboard/trends \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/risk/dashboard/trends', 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/trends"
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/trends"
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))
}{
"period": "<string>",
"buckets": [
{
"date": "<string>",
"signals": 123,
"decisions": 123,
"avg_score": 123
}
]
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Risk operations
Read risk trends
Dashboard trends
GET
/
v1
/
risk
/
dashboard
/
trends
Dashboard trends
curl --request GET \
--url https://api.truthlocks.com/v1/risk/dashboard/trends \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/risk/dashboard/trends', 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/trends"
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/trends"
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))
}{
"period": "<string>",
"buckets": [
{
"date": "<string>",
"signals": 123,
"decisions": 123,
"avg_score": 123
}
]
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Choose 24h, 7d, 30d or 90d. The server selects the matching bucket size; a granularity override is not implemented. Inspect both signal and decision counts when comparing activity.
Authorizations
API key for machine-to-machine authentication
Query Parameters
Hourly buckets for 24h, daily for 7d/30d and weekly for 90d.
Available options:
24h, 7d, 30d, 90d 
