Verify Webhook Signatures
Confirm a webhook request came from Static Forms and was not changed on the way
Every webhook request Static Forms sends is signed with a secret that only you and Static Forms know. Checking the signature before you act on a request stops anyone who finds your endpoint URL from posting fake submissions to it.
Starter feature
Webhooks are available on the Starter plan and above. View plans.
Headers on every request
| Header | Value |
|---|---|
X-StaticForms-Timestamp | Unix time in seconds when the request was sent. |
X-StaticForms-Signature | v1= followed by the hex HMAC-SHA256 signature. During a secret rotation there are two values, separated by a comma. |
X-StaticForms-Delivery-Id | Identifies one delivery. Retries and redeliveries of the same submission keep the same id, so you can use it to skip duplicates. |
These headers are added next to any Bearer, Basic or custom header authentication you set up. Your existing authentication keeps working.
How the signature is made
- Take the timestamp header value and the raw request body, exactly as received.
- Join them with a period:
<timestamp>.<raw body>. - Compute HMAC-SHA256 of that string, using the full signing secret (including its
whsec_prefix) as the key. - Hex-encode the result. That is the value after
v1=.
Verify the raw body
Compute the signature over the bytes you received, before any JSON parsing. Parsing and re-serialising the body can change spacing or key order, and the signature will no longer match.
Verify a request
Each function below returns true only when one of the v1= values matches and the timestamp is less than five minutes from your server's clock. Compare signatures with a constant-time function, as these do, so the comparison time does not leak how many characters matched.
Using it in a route
Reject old requests
The timestamp is part of the signed string, so it cannot be changed without breaking the signature. Rejecting requests older than five minutes stops someone who captured a request from replaying it later. Keep your server clock synced with NTP. If you need a wider window, raise the tolerance rather than skipping the check.
Rotate the secret
Rotate the secret from the Webhook card on the form's Delivery page if it may have been exposed. For the next 24 hours every request is signed with both the new and the previous secret, so the signature header carries two v1= values. Update your endpoint to the new secret during that window. After it closes, only the new secret signs. Rotating again before the window closes replaces only the new secret: the original one keeps signing until the first window ends, and the window is not extended.
Redeliver and duplicates
The delivery log on the Webhook card has a Redeliver action for each attempt. A redelivery sends the original payload again with a fresh timestamp and signature and the same X-StaticForms-Delivery-Id. Store the delivery ids you have processed and ignore repeats, and a retry or redelivery will never create a duplicate record.
If every delivery to an endpoint fails for 24 hours, the workspace owner gets an email about it, at most once a day per webhook. These emails follow the usage alerts setting in your email preferences.
FAQ
How do I verify a Static Forms webhook?
Read the X-StaticForms-Timestamp and X-StaticForms-Signature headers and the raw request body. Compute HMAC-SHA256 of "<timestamp>.<raw body>" with your signing secret as the key, hex-encode it, and compare it in constant time with each v1= value in the signature header. Accept the request if one matches and the timestamp is within five minutes of your clock.
Where do I find the signing secret?
Open the form, go to Edit, then Delivery, and use Reveal in the Webhook card. Only the workspace owner and workspace admins can reveal or rotate it. Each form has its own secret.
Why does the signature header sometimes have two values?
After you rotate the secret, requests are signed with both the new and the previous secret for 24 hours. Your endpoint can switch to the new secret at any point in that window without rejecting requests.
Do signatures replace my Bearer, Basic or custom header authentication?
No. The signature headers are added alongside whatever authentication you configured, so existing endpoints keep working unchanged.









