Webhooks
Webhooks forward each accepted (inbox) submission to an HTTPS endpoint you control as a signed JSON POST request. Webhooks are available on Starter and Pro plans.
Request format
Section titled “Request format”SubmitOwl sends POST requests with Content-Type: application/json and these headers:
| Header | Description |
|---|---|
X-SubmitOwl-Delivery-Id |
Stable ID for this delivery across retries. Use it to deduplicate deliveries. |
X-SubmitOwl-Timestamp |
Unix timestamp in seconds when the request was signed. |
X-SubmitOwl-Signature |
Lowercase hex HMAC-SHA256 signature of <timestamp>.<rawBody>. |
Payload fields:
| Field | Type | Description |
|---|---|---|
id |
string |
Submission ULID. |
form_id |
string |
Form ID (form_...). |
created_at |
number |
Submission time in Unix milliseconds. |
data |
object |
Submitted form fields. |
files |
array |
Currently empty ([]); file download links will be added when file uploads launch. |
Endpoint requirements
Section titled “Endpoint requirements”Webhook URLs are validated when saved and before every delivery attempt (including tests and retries):
- Must use
https://(nohttp://, embedded credentials, or URL fragments). - Must use a public hostname (IP literals, localhost, private addresses, and
submitowl.comor its subdomains are rejected). - Redirects are never followed.
Verify signatures
Section titled “Verify signatures”Compute the lowercase hex HMAC-SHA256 of X-SubmitOwl-Timestamp + "." + rawBody using your full signing secret as UTF-8, including the whsec_ prefix. Verify against the exact raw request body before parsing or reserializing JSON, compare digests in constant time, and reject timestamps older than a few minutes (for example, 5 minutes) to prevent replay attacks.
Rotating a signing secret in the dashboard invalidates the previous secret immediately.
Verification example
Section titled “Verification example”- Signing secret:
whsec_example X-SubmitOwl-Timestamp:1700000000X-SubmitOwl-Signature:18188962f7d2736c4bda3739c1d6fabe5a3a4a2891a95a1850a8b472671dd83b
Raw body (no trailing newline):
{"id":"01HF7YAT000000000000000000","form_id":"form_000000000000000000000","created_at":1700000000000,"data":{"name":"Contact form","values":[1,true,null]},"files":[]}import { createHmac, timingSafeEqual } from "node:crypto";
function verifySignature( secret, timestamp, rawBody, signature, maxAgeSeconds = 300,) { if (!/^\d+$/.test(timestamp) || !/^[0-9a-f]{64}$/.test(signature)) { return false; } const age = Math.abs(Math.floor(Date.now() / 1000) - Number(timestamp)); if (age > maxAgeSeconds) return false; const expected = createHmac("sha256", secret) .update(`${timestamp}.`) .update(rawBody) .digest(); return timingSafeEqual(expected, Buffer.from(signature, "hex"));}Retries and timeouts
Section titled “Retries and timeouts”- Timeout and response body: Each attempt times out after 10 seconds. SubmitOwl only checks the HTTP status code and cancels the response body without reading it.
- Success: Any
2xxstatus marks the delivery as succeeded. - Retries:
408,429,5xx, timeouts, and network errors retry with backoff (1 min,5 min,30 min,2 hours) up to 5 attempts total. - Immediate failure:
3xxand all other4xxresponses stop immediately without retrying. - At-least-once delivery: Rare duplicates can happen after a timeout or network error; deduplicate using
X-SubmitOwl-Delivery-Id. - Auto-disable: After 20 consecutive definite failures, SubmitOwl disables the webhook so you can fix the endpoint and re-enable it.
- Send test: Sends one attempt with no retries, shows the result in the dashboard, and does not affect consecutive failure counts.