Check a webhook signature
check_webhook_signatureVerifies an X-KHQRPay-Signature header against the raw webhook body using the server's configured secret, and reports malformed headers, expired timestamps, or mismatches.
Instructions
Checks an X-KHQRPay-Signature header against a webhook's raw body, with the signing secret from this server's KHQRPAY_WEBHOOK_SECRET (the secret is never an argument and never shown). Says why a check fails: a malformed header, a timestamp more than 5 minutes off, or a mismatch. Runs on this machine; nothing is sent anywhere.
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": {
"raw_body": "<raw_body>",
"signature_header": "<signature_header>"
},
"name": "check_webhook_signature"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw_body | Yes | The request body exactly as received, before any JSON parsing. | |
| signature_header | Yes | The X-KHQRPay-Signature header's value: t=<unix seconds>,v1=<hex>. |