cURL
curl --request GET 'https://gyra-core.gyramais.com.br/v1/webhook/endpoints' \
--header 'Authorization: Bearer <token>'const resposta = await fetch("https://gyra-core.gyramais.com.br/v1/webhook/endpoints", {
method: "GET",
headers: { Authorization: `Bearer ${token}` },
});
const dados = await resposta.json();
import requests
resposta = requests.get(
"https://gyra-core.gyramais.com.br/v1/webhook/endpoints",
headers={"Authorization": f"Bearer {token}"},
)
dados = resposta.json()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://gyra-core.gyramais.com.br/v1/webhook/endpoints",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://gyra-core.gyramais.com.br/v1/webhook/endpoints"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://gyra-core.gyramais.com.br/v1/webhook/endpoints")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://gyra-core.gyramais.com.br/v1/webhook/endpoints")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"endpoints": [
{
"id": "6612a7f30000000000000091",
"url": "https://api.suaempresa.com/gyra/webhook",
"label": "Produção, esteira de crédito",
"events": [
"registry.document.assessed",
"collection.completed"
],
"enabled": true,
"secretHint": "…a91f4c",
"consecutiveFailures": 0,
"lastDeliveryStatus": 200,
"lastDeliveryError": null,
"lastDeliveryAt": "2026-09-06T09:58:11.000Z",
"createdAt": "2026-09-05T18:40:00.000Z",
"updatedAt": "2026-09-06T09:58:11.000Z"
}
]
}{
"code": 401,
"message": "Token de acesso inválido."
}{
"code": 403,
"message": "Você não tem permissão para acessar este recurso."
}{
"code": 500,
"message": "Internal server error"
}Webhook
Listar Assinaturas de Webhook
Quando o cliente diz que parou de receber: aqui aparece se a assinatura foi desligada e por quê.
GET
/
v1
/
webhook
/
endpoints
cURL
curl --request GET 'https://gyra-core.gyramais.com.br/v1/webhook/endpoints' \
--header 'Authorization: Bearer <token>'const resposta = await fetch("https://gyra-core.gyramais.com.br/v1/webhook/endpoints", {
method: "GET",
headers: { Authorization: `Bearer ${token}` },
});
const dados = await resposta.json();
import requests
resposta = requests.get(
"https://gyra-core.gyramais.com.br/v1/webhook/endpoints",
headers={"Authorization": f"Bearer {token}"},
)
dados = resposta.json()
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://gyra-core.gyramais.com.br/v1/webhook/endpoints",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://gyra-core.gyramais.com.br/v1/webhook/endpoints"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://gyra-core.gyramais.com.br/v1/webhook/endpoints")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://gyra-core.gyramais.com.br/v1/webhook/endpoints")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"endpoints": [
{
"id": "6612a7f30000000000000091",
"url": "https://api.suaempresa.com/gyra/webhook",
"label": "Produção, esteira de crédito",
"events": [
"registry.document.assessed",
"collection.completed"
],
"enabled": true,
"secretHint": "…a91f4c",
"consecutiveFailures": 0,
"lastDeliveryStatus": 200,
"lastDeliveryError": null,
"lastDeliveryAt": "2026-09-06T09:58:11.000Z",
"createdAt": "2026-09-05T18:40:00.000Z",
"updatedAt": "2026-09-06T09:58:11.000Z"
}
]
}{
"code": 401,
"message": "Token de acesso inválido."
}{
"code": 403,
"message": "Você não tem permissão para acessar este recurso."
}{
"code": 500,
"message": "Internal server error"
}Quando usar
Quando o cliente diz que “parou de receber”: aqui aparece se a assinatura foi desligada e por quê. Assinatura que acumula 20 falhas seguidas é desligada sozinha.consecutiveFailures, lastDeliveryStatus e lastDeliveryError contam a história.
O segredo não volta aqui: só uma dica com os últimos caracteres.
Contexto e vocabulário em Eventos de webhook. Autenticação, versionamento e capacidades em Visão geral da API.
Authorizations
Enter JWT token
Response
Assinaturas com url, label, events, enabled, secretHint e ultimo status de entrega.
Hide child attributes
Hide child attributes
Vazio quer dizer TODOS os eventos.
Os ultimos caracteres do segredo. O segredo inteiro so aparece na criacao e na rotacao.
Em 20, a assinatura e desligada sozinha.
So em destino com eventos de relatorio e credito: se ha api-key configurada.

