قائمة نقاط نهاية الويب هوك
curl --request GET \
--url https://api.truthlocks.com/v1/webhooks/endpoints \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/webhooks/endpoints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/webhooks/endpoints"
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/webhooks/endpoints"
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": [
{
"id": "<string>",
"name": "<string>",
"url": "<string>",
"status": "<string>",
"event_filters": [
"<string>"
],
"created_at": "<string>"
}
]
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}الويب هوكس
قائمة نقاط نهاية الويب هوك
يعرض جميع نقاط نهاية webhook المكونة للمستأجر المصادق عليه.
GET
/
v1
/
webhooks
/
endpoints
قائمة نقاط نهاية الويب هوك
curl --request GET \
--url https://api.truthlocks.com/v1/webhooks/endpoints \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/webhooks/endpoints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/webhooks/endpoints"
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/webhooks/endpoints"
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": [
{
"id": "<string>",
"name": "<string>",
"url": "<string>",
"status": "<string>",
"event_filters": [
"<string>"
],
"created_at": "<string>"
}
]
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}يعرض جميع نقاط نهاية webhook للمستأجر المصادق عليه، مرتبة حسب وقت الإنشاء (الأحدث أولاً). لا يتم تضمين نقطة النهاية
secret في استجابات القائمة — يتم إرجاعها مرة واحدة فقط عند إنشاء نقطة النهاية.
حقول الاستجابة
| الحقل | النوع | الوصف |
|---|---|---|
id | uuid | معرف فريد لنقطة النهاية |
name | string | الاسم المقروء بشريًا الذي قمت بتعيينه عند إنشاء نقطة النهاية |
url | string | عنوان URL لـ HTTPS الذي يستقبل عمليات تسليم webhook |
status | string | حالة نقطة النهاية الحالية: active أو disabled |
event_filters | string[] | أنواع الأحداث أو أنماط البدل التي يشترك فيها نقطة النهاية |
created_at | string | طابع زمني بتنسيق ISO 8601 عندما تم إنشاء نقطة النهاية |
updated_at | string | طابع زمني بتنسيق ISO 8601 لآخر تعديل |

