Listar endpoints 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 endpoints de webhook
Retorna todos os endpoints de webhook configurados para o locatário autenticado.
GET
/
v1
/
webhooks
/
endpoints
Listar endpoints 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
}Retorna todos os endpoints de webhook para o locatário autenticado, ordenados por tempo de criação (mais recentes primeiro). O endpoint
secret não está incluído nas respostas da lista — ele é retornado apenas uma vez quando o endpoint é criado.
Campos de resposta
| Campo | Tipo | Descrição |
|---|---|---|
id | uuid | Identificador único para o endpoint |
name | string | Nome legível atribuído ao criar o endpoint |
url | string | A URL HTTPS que recebe as entregas de webhook |
status | string | Status atual do endpoint: active ou disabled |
event_filters | string[] | Tipos de evento ou padrões curinga aos quais o endpoint se inscreve |
created_at | string | Carimbo de data/hora ISO 8601 de quando o endpoint foi criado |
updated_at | string | Carimbo de data/hora ISO 8601 da última modificação |

