GET
https://api.myidvirtual.com
/
webhooks
/
:id
Obter Webhook
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"
}

Obter Webhook

Endpoint para obter detalhes de um webhook específico por ID.

Autenticação

Authorization
string
required
Bearer token JWT do usuário autenticado

Parâmetros

id
string
required
ID do webhook

Responses

{
  "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"
}

Exemplo de Requisição

curl --location --request GET 'http://localhost:3333/webhooks/webhook-id-123' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...'