Verificar una firma de webhook
hilo_verify_webhook_signatureVerify a webhook signature against the raw body and secret. Debug handler rejections by checking if the signature was computed from re-serialized JSON instead of the raw body.
Instructions
Comprueba si una firma corresponde a un cuerpo y un secreto, con la misma fórmula que usa Hilo. Úsala para depurar cuando tu handler rechaza eventos legítimos: casi siempre es porque se firmó el JSON re-serializado en vez del cuerpo crudo.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"rawBody": "<rawBody>",
"signature": "<signature>",
"secret": "<secret>"
},
"name": "hilo_verify_webhook_signature"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| secret | Yes | Tu statusWebhookSecret. | |
| rawBody | Yes | Cuerpo crudo recibido, exactamente como llegó. | |
| signature | Yes | Valor del header X-Hilo-Signature (incluye 'sha256='). |