curl --request GET \
--url https://api.myidvirtual.com/webhooks \
--header 'Authorization: <authorization>'[
{
"id": "webhook-id-123",
"url": "https://seu-servidor.com/webhook",
"method": "POST",
"events": ["payment.created"],
"status": "active",
"createdAt": "2024-01-15T10:30:00.000Z"
}
]
Lista todos os webhooks cadastrados
curl --request GET \
--url https://api.myidvirtual.com/webhooks \
--header 'Authorization: <authorization>'[
{
"id": "webhook-id-123",
"url": "https://seu-servidor.com/webhook",
"method": "POST",
"events": ["payment.created"],
"status": "active",
"createdAt": "2024-01-15T10:30:00.000Z"
}
]
[
{
"id": "webhook-id-123",
"url": "https://seu-servidor.com/webhook",
"method": "POST",
"events": ["payment.created"],
"status": "active",
"createdAt": "2024-01-15T10:30:00.000Z"
}
]
curl --location --request GET 'http://localhost:3333/webhooks' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'