Listar endpoints de webhook
curl --request GET \
--url https://api.nlbs.ai/webhooks/endpointsimport requests
url = "https://api.nlbs.ai/webhooks/endpoints"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.nlbs.ai/webhooks/endpoints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.nlbs.ai/webhooks/endpoints",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.nlbs.ai/webhooks/endpoints"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.nlbs.ai/webhooks/endpoints")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nlbs.ai/webhooks/endpoints")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"consecutive_failures": 123,
"created_at": "2023-11-07T05:31:56Z",
"disabled_at": "2023-11-07T05:31:56Z",
"last_failure_at": "2023-11-07T05:31:56Z",
"last_success_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"status": "active",
"subscribed_events": [
"webhook.test"
],
"updated_at": "2023-11-07T05:31:56Z",
"url": "<string>",
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]{
"detail": "Resource not found."
}{
"detail": "Resource not found."
}Webhooks
Listar endpoints de webhook
Lista os endpoints de webhook pertencentes ao cliente autenticado.
GET
/
webhooks
/
endpoints
Listar endpoints de webhook
curl --request GET \
--url https://api.nlbs.ai/webhooks/endpointsimport requests
url = "https://api.nlbs.ai/webhooks/endpoints"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.nlbs.ai/webhooks/endpoints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.nlbs.ai/webhooks/endpoints",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.nlbs.ai/webhooks/endpoints"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.nlbs.ai/webhooks/endpoints")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nlbs.ai/webhooks/endpoints")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body[
{
"consecutive_failures": 123,
"created_at": "2023-11-07T05:31:56Z",
"disabled_at": "2023-11-07T05:31:56Z",
"last_failure_at": "2023-11-07T05:31:56Z",
"last_success_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"status": "active",
"subscribed_events": [
"webhook.test"
],
"updated_at": "2023-11-07T05:31:56Z",
"url": "<string>",
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]{
"detail": "Resource not found."
}{
"detail": "Resource not found."
}Response
Successful Response
Contagem atual de falhas de entrega consecutivas.
Timestamp de criação do endpoint.
Timestamp de quando o endpoint foi desativado.
Timestamp da última entrega com falha.
Timestamp da última entrega bem-sucedida.
Nome legível do endpoint de webhook.
Status do ciclo de vida do endpoint.
Available options:
active, disabled Tipos de evento assinados.
Available options:
webhook.test, adverse_media.completed, adverse_media.failed Timestamp da última atualização do endpoint.
URL de destino.
UUID do endpoint de webhook.

