Every webhook delivery from Atomicity, for form submissions and sitemap changes, is an HTTPS POST with a JSON body and the same headers, signature, and retry rules.
Request
| Part | Value |
|---|---|
| Method | POST |
| URL | Your webhook URL. Always https://. |
| Body | JSON. See the form payload or the sitemap payload. |
| Timeout | 8 seconds per attempt |
Headers
| Header | Value |
|---|---|
Content-Type |
application/json |
User-Agent |
Atomicity-Forms-Webhook/1 or Atomicity-Sitemaps-Webhook/1 |
X-Atomicity-Signature |
sha256= followed by the hex HMAC-SHA256 of the raw body, keyed with the webhook’s signing secret |
X-Atomicity-Delivery |
A unique ID for the delivery. Every retry of a delivery has the same ID. |
X-Atomicity-Attempt |
Which attempt this is, from 1 to 6 |
Headers you add to a webhook are sent too, but they can’t replace any header above.
Signing secret
Each webhook has its own signing secret, starting whsec_, created when you add the webhook. Reveal and copy it from the webhook’s row in its settings. Rotate secret issues a new one at once, and the old one stops working, so update your receiver straight after rotating.
Verify a signature
Compute the HMAC-SHA256 of the raw request body, exactly as received and before parsing it, with the signing secret as the key. Compare it to the hex value after sha256= in X-Atomicity-Signature, using a constant-time comparison.
import crypto from "node:crypto";
export function isFromAtomicity(rawBody, signatureHeader, secret) {
const expected = "sha256=" + crypto.createHmac("sha256", secret).update(rawBody).digest("hex");
const a = Buffer.from(expected);
const b = Buffer.from(signatureHeader ?? "");
return a.length === b.length && crypto.timingSafeEqual(a, b);
}Reject a request whose signature doesn’t match with 401. A delivery your receiver rejects with a 4xx isn’t retried.
Responses
| Your endpoint answers | Atomicity |
|---|---|
Any 2xx |
Counts the delivery as delivered. |
408, 429, or any 5xx |
Retries it. |
| No answer within 8 seconds, or no connection | Retries it. |
| Any other status | Counts the delivery as failed. No retry. |
The first 10,000 characters of each response body are kept in the delivery log.
Retry schedule
A delivery is attempted up to 6 times, over about 8.5 hours:
| Attempt | Sent |
|---|---|
| 1 | Straight away |
| 2 | About 1 minute after attempt 1 |
| 3 | About 5 minutes after attempt 2 |
| 4 | About 30 minutes after attempt 3 |
| 5 | About 2 hours after attempt 4 |
| 6 | About 6 hours after attempt 5 |
Every attempt sends the same body. Use X-Atomicity-Delivery, or the payload’s own ID such as submissionId, to ignore a delivery you’ve already handled.
A delivery counts as failed only when its last attempt fails. While attempts remain, the delivery shows as Retrying.
Pausing
After 3 failed deliveries in a row, a webhook is paused, and no more deliveries are sent to it. To start it again, select Send test and get a 2xx answer, or switch the webhook off and on. A successful delivery or test resets the count. A failed test doesn’t count toward pausing.
Tests
Send test posts a sample payload once, with "test": true, and is signed like any other delivery. Tests aren’t retried.
