webhook_verify
Verify HMAC webhook signatures using constant-time comparison, returning a match result to confirm authenticity.
Instructions
Constant-time verify an HMAC webhook signature.
Same parameters as webhook_sign plus the candidate signature.
Returns matches=True only if the signature is byte-equal under
constant-time comparison.
Returns: dict with keys: matches, algorithm, encoding, signing_string, valid
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| secret | Yes | ||
| encoding | No | hex | |
| template | No | {body} | |
| algorithm | No | sha256 | |
| signature | Yes | ||
| timestamp | No |