الحصول على تكوين المخاطر
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
}عمليات المخاطر
قراءة إعدادات المخاطر
الحصول على تكوين المخاطر
GET
/
v1
/
risk
/
config
الحصول على تكوين المخاطر
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
}قراءة العتبات المخزنة وتفضيلات الإشعارات. يعني updated_at الفارغ أن القيم الافتراضية لم يتم حفظها بعد. لا يثبت مفتاح الإشعار أنه تم تسليم بريد إلكتروني أو webhook.
الاستجابة
نتيجة مساحة العمل الحالية

