validate_request
validate_request
validate_request
A legacy-compatible signature validator with a drop-in shape for callers migrating from
the Compatibility SDK. It accepts either a raw request body or pre-parsed form
parameters. When given a raw body string it delegates to
validate_webhook_signature; when given parsed form params
it validates them directly.
For new custom servers, prefer validate_webhook_signature
and pass the raw request body. Use validate_request when you only have access to
pre-parsed form parameters.
Your Signing Key from the Dashboard. A missing or empty value raises ValueError.
The signature header value. A missing or empty value returns False.
The full URL SignalWire POSTed to.
Either a raw body str (delegates to
validate_webhook_signature) or pre-parsed form params
as a dict or list of (key, value) tuples. None is treated as empty params. Any
other type raises TypeError.
bool — True on a signature match, False otherwise.