Webhook Secrets and Signature Verification
Webhook verification helps confirm that an incoming event came from the expected sender. Configure the signature settings to match that sender’s documented scheme.

Illustrative receiver logic; helper names are not a StackAI SDK. Use the sender’s exact signing scheme, header names, encoding, and timestamp rules. Do not parse and reserialize the body before verification.
Before you begin
A sender that supports signing and access to the trigger’s verification settings.
Key concepts
HMAC signature
A message-authentication value calculated using a shared secret and payload. The receiver must use the same algorithm, encoding, and exact payload representation.
Raw body
The original request bytes before parsing or reformatting. Signature verification can fail if the body is changed before verification.
Header
A named value sent as HTTP request or response metadata. Authentication and signatures belong in the headers specified by the contract.
Secret
Sensitive configuration such as a credential. Use supported secret fields and avoid exposing values in prompts, logs, or screenshots.
Webhook
An HTTP request sent by one system to notify another about an event. Delivery and workflow completion are separate outcomes.
Verify incoming webhook requests
Set the shared secret through the supported secret field.
Match the signature header and encoding to the sender’s configuration.
Send a signed event and inspect the result. Confirm that an invalid signature is rejected.
Valid signed events can start the workflow while invalid signatures are rejected.
Behavior and limitations
HMAC verification depends on the exact payload bytes, shared secret, and encoding. Do not substitute an unrelated API key for a signing secret. Signature headers and hex or base64 encoding vary by provider. Keep the secret out of logs and rotate it in both systems when replacing it.
Related resources
Was this helpful?

