Listar puntos finales de webhook
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
Listar puntos finales de webhook
Devuelve todos los endpoints de webhook configurados para el inquilino autenticado.
GET
/
v1
/
webhooks
/
endpoints
Listar puntos finales de webhook
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
}Devuelve todos los endpoints de webhook para el inquilino autenticado, ordenados por fecha de creación (los más recientes primero). El endpoint
secret no se incluye en las respuestas de la lista; solo se devuelve una vez cuando el endpoint es creado.
Campos de respuesta
| Campo | Tipo | Descripción |
|---|---|---|
id | uuid | Identificador único para el endpoint |
name | string | Nombre legible que asignó al crear el endpoint |
url | string | La URL HTTPS que recibe las entregas de webhook |
status | string | Estado actual del endpoint: active o disabled |
event_filters | string[] | Tipos de eventos o patrones comodín a los que se suscribe el endpoint |
created_at | string | Marca de tiempo ISO 8601 de cuando se creó el endpoint |
updated_at | string | Marca de tiempo ISO 8601 de la última modificación |

