Webhook-Endpunkte auflisten
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
}Webhooks
Webhook-Endpunkte auflisten
Gibt alle konfigurierten Webhook-Endpunkte für den authentifizierten Mandanten zurück.
GET
/
v1
/
webhooks
/
endpoints
Webhook-Endpunkte auflisten
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
}Gibt alle Webhook-Endpunkte für den authentifizierten Mandanten zurück, sortiert nach Erstellungszeit (neueste zuerst). Der Endpunkt
secret ist nicht in den Listenantworten enthalten – er wird nur einmal zurückgegeben, wenn der Endpunkt erstellt wird.
Antwortfelder
| Feld | Typ | Beschreibung |
|---|---|---|
id | uuid | Eindeutiger Bezeichner für den Endpunkt |
name | string | Von Ihnen bei der Erstellung des Endpunkts zugewiesener, menschenlesbarer Name |
url | string | Die HTTPS-URL, die Webhook-Lieferungen empfängt |
status | string | Aktueller Endpunktstatus: active oder disabled |
event_filters | string[] | Ereignistypen oder Wildcard-Muster, die der Endpunkt abonniert |
created_at | string | ISO 8601 Zeitstempel, wann der Endpunkt erstellt wurde |
updated_at | string | ISO 8601 Zeitstempel der letzten Änderung |

