Get risk configuration
curl --request GET \
--url https://api.truthlocks.com/v1/risk/config \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/risk/config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/risk/config"
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/config"
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))
}{
"auto_case_threshold": 50,
"auto_block_threshold": 50,
"auto_challenge_threshold": 50,
"email_alerts_enabled": true,
"webhook_alerts_enabled": true,
"siem_format": "json",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_at": "<string>"
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Risk operations
Read risk settings
Get risk configuration
GET
/
v1
/
risk
/
config
Get risk configuration
curl --request GET \
--url https://api.truthlocks.com/v1/risk/config \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/risk/config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/risk/config"
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/config"
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))
}{
"auto_case_threshold": 50,
"auto_block_threshold": 50,
"auto_challenge_threshold": 50,
"email_alerts_enabled": true,
"webhook_alerts_enabled": true,
"siem_format": "json",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_at": "<string>"
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Read stored thresholds and notification preferences. An empty updated_at means defaults have not yet been persisted. A notification switch does not prove that an email or webhook was delivered.
Authorizations
API key for machine-to-machine authentication
Response
Current workspace result
Required range:
0 <= x <= 100Required range:
0 <= x <= 100Required range:
0 <= x <= 100Stored notification preference; not proof of email delivery.
Stored notification preference; not a SIEM destination configuration.
Available options:
json, cef, leef RFC3339 when stored; empty for untouched defaults.

