curl --location 'https://gyra-core.gyramais.com.br/webhook/findBy' \
--header 'Authorization: Bearer {seu_token_jwt}'
fetch("https://gyra-core.gyramais.com.br/webhook/findBy", {
method: "GET",
headers: {
"Authorization": "Bearer {seu_token_jwt}",
},
})
.then(res => res.json())
.then(console.log)
import requests
url = "https://gyra-core.gyramais.com.br/webhook/findBy"
headers = {
"Authorization": "Bearer {seu_token_jwt}"
}
response = requests.get(url, headers=headers)
print(response.json())
[
{
"id": "6612a7f344eb43f000000000",
"createdAt": "2025-06-18T23:48:24.706Z",
"updatedAt": "2025-06-18T23:48:24.706Z",
"organizationId": "6612a7f3fa9e086b00000000",
"type": "REPORT_FINISHED",
"url": "https://seu-sistema.com/webhooks/gyra",
"apiKey": null
},
{
"id": "6612a7f366b264ff00000000",
"createdAt": "2025-08-26T17:00:37.398Z",
"updatedAt": "2025-08-26T17:00:37.398Z",
"organizationId": "6612a7f3fa9e086b00000000",
"type": "REPORT_FINISHED",
"url": "https://seu-sistema.com/webhooks/gyra",
"apiKey": null
}
]
{
"code": 401,
"message": "Token de acesso inválido."
}
Referência da API
Consultar Webhook
Busca um webhook por ID
GET
/
webhook
/
findBy
curl --location 'https://gyra-core.gyramais.com.br/webhook/findBy' \
--header 'Authorization: Bearer {seu_token_jwt}'
fetch("https://gyra-core.gyramais.com.br/webhook/findBy", {
method: "GET",
headers: {
"Authorization": "Bearer {seu_token_jwt}",
},
})
.then(res => res.json())
.then(console.log)
import requests
url = "https://gyra-core.gyramais.com.br/webhook/findBy"
headers = {
"Authorization": "Bearer {seu_token_jwt}"
}
response = requests.get(url, headers=headers)
print(response.json())
[
{
"id": "6612a7f344eb43f000000000",
"createdAt": "2025-06-18T23:48:24.706Z",
"updatedAt": "2025-06-18T23:48:24.706Z",
"organizationId": "6612a7f3fa9e086b00000000",
"type": "REPORT_FINISHED",
"url": "https://seu-sistema.com/webhooks/gyra",
"apiKey": null
},
{
"id": "6612a7f366b264ff00000000",
"createdAt": "2025-08-26T17:00:37.398Z",
"updatedAt": "2025-08-26T17:00:37.398Z",
"organizationId": "6612a7f3fa9e086b00000000",
"type": "REPORT_FINISHED",
"url": "https://seu-sistema.com/webhooks/gyra",
"apiKey": null
}
]
{
"code": 401,
"message": "Token de acesso inválido."
}
Quando usar
Use esta rota para listar os webhooks cadastrados na sua organização: tipo, URL eapiKey de cada um. Serve para auditar a configuração antes de criar ou remover um webhook.
Autenticação
Bearer JWT no headerAuthorization.
Parâmetros
| Nome | Local | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
webhookId | query | string | não | ID de um webhook. Sem o parâmetro, a resposta traz todos os webhooks da organização do token. |
webhookId. Se a consulta falhar, a resposta é 200 sem corpo.
curl --location 'https://gyra-core.gyramais.com.br/webhook/findBy' \
--header 'Authorization: Bearer {seu_token_jwt}'
fetch("https://gyra-core.gyramais.com.br/webhook/findBy", {
method: "GET",
headers: {
"Authorization": "Bearer {seu_token_jwt}",
},
})
.then(res => res.json())
.then(console.log)
import requests
url = "https://gyra-core.gyramais.com.br/webhook/findBy"
headers = {
"Authorization": "Bearer {seu_token_jwt}"
}
response = requests.get(url, headers=headers)
print(response.json())
[
{
"id": "6612a7f344eb43f000000000",
"createdAt": "2025-06-18T23:48:24.706Z",
"updatedAt": "2025-06-18T23:48:24.706Z",
"organizationId": "6612a7f3fa9e086b00000000",
"type": "REPORT_FINISHED",
"url": "https://seu-sistema.com/webhooks/gyra",
"apiKey": null
},
{
"id": "6612a7f366b264ff00000000",
"createdAt": "2025-08-26T17:00:37.398Z",
"updatedAt": "2025-08-26T17:00:37.398Z",
"organizationId": "6612a7f3fa9e086b00000000",
"type": "REPORT_FINISHED",
"url": "https://seu-sistema.com/webhooks/gyra",
"apiKey": null
}
]
{
"code": 401,
"message": "Token de acesso inválido."
}

