Verify a ROKI webhook signature and diagnose why it fails
roki_verify_webhook_signatureCheck a ROKI-Signature header against the raw body and the signing secret. When it fails, this does not just say "invalid" - it tries the specific wrong constructions developers actually write and tells you which mistake you made. Use it whenever webhook verification rejects real events. On the signing secret: this is ROKI's own server and ROKI issued that secret, so sending it here discloses nothing new. It is used to recompute the HMAC and is never stored, logged or counted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw_body | Yes | The EXACT raw request body as received, byte for byte, before any JSON parsing. | |
| signing_secret | Yes | The signing secret from the portal, for the same environment as the event. Held in memory for the duration of the call only: this server logs no tool arguments. | |
| signature_header | Yes | The full ROKI-Signature header value, e.g. "t=1719234300,v1=8f3c..." |