curl --request GET \
--url https://api.myidvirtual.com/webhooks/:id \
--header 'Authorization: <authorization>'{
"id": "webhook-id-123",
"url": "https://seu-servidor.com/webhook",
"method": "POST",
"authorization": "Bearer token123",
"events": ["payment.created", "payment.confirmed"],
"status": "active",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z"
}
Obtém detalhes de um webhook específico
curl --request GET \
--url https://api.myidvirtual.com/webhooks/:id \
--header 'Authorization: <authorization>'{
"id": "webhook-id-123",
"url": "https://seu-servidor.com/webhook",
"method": "POST",
"authorization": "Bearer token123",
"events": ["payment.created", "payment.confirmed"],
"status": "active",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z"
}
{
"id": "webhook-id-123",
"url": "https://seu-servidor.com/webhook",
"method": "POST",
"authorization": "Bearer token123",
"events": ["payment.created", "payment.confirmed"],
"status": "active",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z"
}
curl --location --request GET 'http://localhost:3333/webhooks/webhook-id-123' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'