List risk decisions
curl --request GET \
--url https://api.truthlocks.com/v1/risk/decisions \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/risk/decisions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/risk/decisions"
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/decisions"
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))
}{
"items": [
{
"decision_id": "<string>",
"subject_id": "<string>",
"decision": "<string>",
"risk_score": 123,
"created_at": "<string>"
}
],
"cursor": "<string>"
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Risk operations
List risk decisions
List risk decisions
GET
/
v1
/
risk
/
decisions
List risk decisions
curl --request GET \
--url https://api.truthlocks.com/v1/risk/decisions \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/risk/decisions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/risk/decisions"
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/decisions"
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))
}{
"items": [
{
"decision_id": "<string>",
"subject_id": "<string>",
"decision": "<string>",
"risk_score": 123,
"created_at": "<string>"
}
],
"cursor": "<string>"
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Filter by subject_id or decision and paginate with limit and offset. The endpoint uses offset pagination, not a cursor. A recorded decision describes the risk workflow; it is not proof that an external application applied enforcement.
Authorizations
API key for machine-to-machine authentication
Query Parameters
Required range:
1 <= x <= 100Required range:
x >= 0Available options:
allow, block, challenge, review 
