GET
https://api.myidvirtual.com
/
webhooks
Listar Webhooks
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"
  }
]

Listar Webhooks

Endpoint para listar todos os webhooks cadastrados pelo usuário.

Autenticação

Authorization
string
required
Bearer token JWT do usuário autenticado

Query Parameters

authorization
string
Filtrar por token de autorização
method
string
Filtrar por método HTTP

Responses

[
  {
    "id": "webhook-id-123",
    "url": "https://seu-servidor.com/webhook",
    "method": "POST",
    "events": ["payment.created"],
    "status": "active",
    "createdAt": "2024-01-15T10:30:00.000Z"
  }
]

Exemplo de Requisição

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