Webhooks

Testar Conexão do Endpoint (Ping)

Envia um ping HTTP com o header X-NFER-Event: ping para checar se o servidor receptor está online e respondendo 2xx.

POSThttps://api.nfer.me/v1/webhooks/:id/test-connection

Headers da Requisição

X-API-Keystringobrigatório

Chave de API.

Parâmetros de Rota (Path Parameters)

idstringobrigatório

ID do webhook.

Exemplo: wh_778899
Testar Conexão do Endpoint (Ping)
curl --request POST \
--url https://api.nfer.me/v1/webhooks/:id/test-connection \
--header 'X-API-Key: <sua_chave_api>' \
--header 'Content-Type: application/json'
{
"reachable": true,
"http_status": 200,
"response_time_ms": 85
}