curl --location --request DELETE 'https://gyra-core.gyramais.com.br/webhook/6612a7f32f90990d00000000' \
--header 'Authorization: Bearer {seu_token_jwt}'
fetch("https://gyra-core.gyramais.com.br/webhook/6612a7f32f90990d00000000", {
method: "DELETE",
headers: {
"Authorization": "Bearer {seu_token_jwt}",
},
})
.then(res => res.json())
.then(console.log)
import requests
url = "https://gyra-core.gyramais.com.br/webhook/6612a7f32f90990d00000000"
headers = {
"Authorization": "Bearer {seu_token_jwt}"
}
response = requests.delete(url, headers=headers)
print(response.json())
{
"id": "6612a7f32f90990d00000000",
"createdAt": "2026-07-31T18:02:54.965Z",
"updatedAt": "2026-07-31T18:02:54.965Z",
"organizationId": "6612a7f3fa9e086b00000000",
"type": "REPORT_FINISHED",
"url": "https://seu-sistema.com/webhooks/gyra",
"apiKey": "teste-doc"
}
{
"code": 404,
"message": "An operation failed because it depends on one or more records that were required but not found. Record to delete does not exist."
}
{
"code": 401,
"message": "Token de acesso inválido."
}
Referência da API
Remover Webhook
Remove um webhook por ID
DELETE
/
webhook
/
{id}
curl --location --request DELETE 'https://gyra-core.gyramais.com.br/webhook/6612a7f32f90990d00000000' \
--header 'Authorization: Bearer {seu_token_jwt}'
fetch("https://gyra-core.gyramais.com.br/webhook/6612a7f32f90990d00000000", {
method: "DELETE",
headers: {
"Authorization": "Bearer {seu_token_jwt}",
},
})
.then(res => res.json())
.then(console.log)
import requests
url = "https://gyra-core.gyramais.com.br/webhook/6612a7f32f90990d00000000"
headers = {
"Authorization": "Bearer {seu_token_jwt}"
}
response = requests.delete(url, headers=headers)
print(response.json())
{
"id": "6612a7f32f90990d00000000",
"createdAt": "2026-07-31T18:02:54.965Z",
"updatedAt": "2026-07-31T18:02:54.965Z",
"organizationId": "6612a7f3fa9e086b00000000",
"type": "REPORT_FINISHED",
"url": "https://seu-sistema.com/webhooks/gyra",
"apiKey": "teste-doc"
}
{
"code": 404,
"message": "An operation failed because it depends on one or more records that were required but not found. Record to delete does not exist."
}
{
"code": 401,
"message": "Token de acesso inválido."
}
Quando usar
Use esta rota para remover um webhook, por exemplo ao trocar a URL de destino. A remoção é definitiva e a URL para de receber eventos. Para trocar a URL, remova e cadastre de novo em Criar Webhook.Autenticação
Bearer JWT no headerAuthorization.
Parâmetros
| Nome | Local | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
id | path | string | sim | ID do webhook, de Consultar Webhook. |
curl --location --request DELETE 'https://gyra-core.gyramais.com.br/webhook/6612a7f32f90990d00000000' \
--header 'Authorization: Bearer {seu_token_jwt}'
fetch("https://gyra-core.gyramais.com.br/webhook/6612a7f32f90990d00000000", {
method: "DELETE",
headers: {
"Authorization": "Bearer {seu_token_jwt}",
},
})
.then(res => res.json())
.then(console.log)
import requests
url = "https://gyra-core.gyramais.com.br/webhook/6612a7f32f90990d00000000"
headers = {
"Authorization": "Bearer {seu_token_jwt}"
}
response = requests.delete(url, headers=headers)
print(response.json())
{
"id": "6612a7f32f90990d00000000",
"createdAt": "2026-07-31T18:02:54.965Z",
"updatedAt": "2026-07-31T18:02:54.965Z",
"organizationId": "6612a7f3fa9e086b00000000",
"type": "REPORT_FINISHED",
"url": "https://seu-sistema.com/webhooks/gyra",
"apiKey": "teste-doc"
}
{
"code": 404,
"message": "An operation failed because it depends on one or more records that were required but not found. Record to delete does not exist."
}
{
"code": 401,
"message": "Token de acesso inválido."
}

