How it works
Someone submits
A person fills in your live form and presses submit.
We post it
Within a second or two we send the response as JSON to your URL.
You use it
Your server saves it, alerts someone or starts a workflow.
Add a webhook
- Open your form in Formsoft and choose the Connect tab.
- Paste the https:// URL that should receive responses and click Add webhook.
- Click Send test. A sample response built from your questions is sent, and the result shows in the delivery log.
- Copy the signing secret if you want to check each request really came from Formsoft (see below).
You can add up to five webhooks per form, pause one without deleting it, and rotate its signing secret at any time.
What we send
Each delivery is a POST with a JSON body. Answers come twice: as a detailed list in answers, and as plain text keyed by question title in fields. Unanswered optional questions are left out.
{
"event": "response.created",
"deliveryId": "3f6c2a1e-9b12-4c8d-a1f0-0123456789ab",
"sentAt": "2026-10-09T01:23:45.000Z",
"form": {
"id": "…",
"title": "Client intake",
"url": "https://formsoft.app/f/your-org/client-intake"
},
"response": {
"id": "…",
"submittedAt": "2026-10-09T01:23:44.000Z",
"respondentEmail": "sam@example.com",
"answers": [
{
"questionId": "…",
"title": "Your name",
"type": "short_text",
"value": "Sam Lee",
"text": "Sam Lee"
},
{
"questionId": "…",
"title": "Upload a brief",
"type": "file_upload",
"value": ["forms/…/brief.pdf"],
"text": "brief.pdf",
"files": [
{ "name": "brief.pdf", "url": "https://…signed… (valid 24h)" }
]
}
],
"fields": {
"Your name": "Sam Lee",
"Upload a brief": "brief.pdf"
}
}
}- event
- response.created for a new response, response.approval when someone approves it or doesn't (forms with approvals), and test for Send test.
- deliveryId
- Unique per send. Use it to ignore a delivery you've already handled.
- sentAt
- When this attempt was sent (ISO 8601, UTC).
- form.id / form.title / form.url
- Which form the response belongs to, and its public link.
- response.id
- Stable id for the response. Same on every retry or resend.
- response.submittedAt
- When the person pressed submit (ISO 8601, UTC).
- response.respondentEmail
- The first email answer, if the form asked for one. Otherwise null.
- response.answers[]
- One entry per answered question: questionId, title, type, raw value and readable text.
- response.answers[].files
- File questions only: name and a signed download link valid for 24 hours. Test deliveries use a made-up example.com link.
- response.fields
- The same answers as plain text, keyed by question title. Easiest to map in your own code.
- response.approval
- Forms with approvals only: status (pending, approved or rejected), decidedAt (ISO 8601, UTC, null while waiting) and note (the note left with the decision, or null). New responses arrive as pending. Each decision sends a response.approval event with the whole response again.
Answer values by question type
- short_text, long_text, email, phone, url
- string
- number, rating, opinion_scale
- number
- date
- "YYYY-MM-DD"
- multiple_choice, picture_choice, dropdown, yes_no
- string (the chosen label)
- checkboxes
- string[] (the chosen labels)
- ranking
- string[] (every label, in the chosen order)
- matrix
- { "row label": "column label" } (text lists rows in form order)
- consent
- true
- booking
- { "start": "2026-10-12T01:00:00.000Z" } (appointment start, UTC); text shows it in the form's timezone
- signature
- { "d": "M12 80 L15 82 …" } (SVG path in a 600×200 box) or { "name": "Typed name" }
- contact_info
- { "firstName": "Sam", "lastName": "Lee", "email": "sam@example.com", "phone": "+61 400 000 000", "company": "Rose & Co", "jobTitle": "Practice manager", "x4k9q2m": "4417" } (only the parts asked and filled in; the keys stay the same if you rename a box. Boxes you add yourself use a fixed key like "x4k9q2m", and the text form labels them, like "Staff ID: 4417")
- address
- { "line1": "1 Rose St", "line2": "Unit 2", "city": "Perth", "region": "WA", "postcode": "6000", "country": "Australia" } (empty parts left out)
- file_upload
- string[] (storage paths) plus files[]
Headers
- Formsoft-Event
- The event name. Today: response.created or test.
- Formsoft-Delivery
- A unique id for this delivery. Same across retries of the same send.
- Formsoft-Signature
- t=<unix>,v1=<hex>: an HMAC-SHA256 of timestamp.body made with your signing secret.
- User-Agent
- Formsoft-Webhooks/1.0
- Content-Type
- application/json
Check the signature
Every request is signed with the webhook's secret (it starts with whsec_). The Formsoft-Signature header holds a Unix timestamp t and v1, an HMAC-SHA256 hex digest of t + "." + raw body. Compare it using the raw request body, before any JSON parsing, and reject requests older than a few minutes.
Node.js
import crypto from "node:crypto";
// Check a request really came from Formsoft.
// rawBody is the request body as a string, before JSON parsing.
export function verifyFormsoft(rawBody, signatureHeader, secret) {
const parts = Object.fromEntries(
signatureHeader.split(",").map((p) => p.split("=")),
);
const expected = crypto
.createHmac("sha256", secret)
.update(`${parts.t}.${rawBody}`)
.digest("hex");
const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300; // 5 minutes
return (
fresh &&
parts.v1?.length === expected.length &&
crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1))
);
}Python
import hashlib, hmac, time
def verify_formsoft(raw_body: bytes, signature_header: str, secret: str) -> bool:
parts = dict(p.split("=", 1) for p in signature_header.split(","))
signed = f"{parts['t']}.".encode() + raw_body
expected = hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest()
fresh = abs(time.time() - int(parts["t"])) < 300 # 5 minutes
return fresh and hmac.compare_digest(expected, parts.get("v1", ""))Receive it in your app
Two complete receivers using the Node.js function above. Both check the signature against the raw body, ignore test sends, and reply 204 straight away. If your work takes longer than a few seconds, reply first and do it afterwards, so the request doesn't time out and get retried.
Next.js route handler
// app/api/formsoft/route.js
import { verifyFormsoft } from "@/lib/verify-formsoft"; // the function above
export async function POST(req) {
// Read the raw body first: the signature is made from the exact bytes we sent.
const raw = await req.text();
const ok = verifyFormsoft(
raw,
req.headers.get("formsoft-signature") ?? "",
process.env.FORMSOFT_WEBHOOK_SECRET,
);
if (!ok) return new Response("Bad signature", { status: 401 });
const payload = JSON.parse(raw);
if (payload.event === "response.created") {
// Save it, send an alert, start a workflow…
console.log(payload.response.fields);
}
return new Response(null, { status: 204 });
}Express
import express from "express";
import { verifyFormsoft } from "./verify-formsoft.js"; // the function above
const app = express();
// express.raw keeps the body as bytes so the signature can be checked.
// Don't put express.json() in front of this route.
const asBytes = express.raw({ type: "application/json" });
app.post("/hooks/formsoft", asBytes, (req, res) => {
const raw = req.body.toString("utf8");
const ok = verifyFormsoft(
raw,
req.get("formsoft-signature") ?? "",
process.env.FORMSOFT_WEBHOOK_SECRET,
);
if (!ok) return res.sendStatus(401);
const payload = JSON.parse(raw);
if (payload.event === "response.created") {
// Save it, send an alert, start a workflow…
console.log(payload.response.fields);
}
res.sendStatus(204);
});
app.listen(3000);The most common reason a signature doesn't match is that the body was parsed as JSON and turned back into text before checking. Always check the bytes as they arrived.
Retries and the delivery log
Reply with any 2xx status within 10 seconds. If your endpoint times out, can't be reached, or replies with 408, 429 or a 5xx, we try again after about 5 seconds and again after about 30 seconds. If it still fails, we keep trying with longer gaps (5 minutes, growing to 8 hours) for about a day, using the same deliveryId. If it never gets through, the workspace owners and admins get one email, and you can resend from the delivery log. Other 4xx replies aren't retried, so you can turn away requests you don't want.
Every attempt appears in the delivery log on the Connect tab, with the status code and how long it took. From there you can resend any response, or use Resend all failed to send everything we gave up on, one at a time. A resend that gets through clears it from the “couldn't be sent” count. A test ping doesn't, because it carries a made-up response. Logs are kept for 30 days. Because a retry can arrive after a slow success, use deliveryId or response.id to skip duplicates.
To keep things fair, each workspace sends up to 60 webhook requests a minute. Anything over that waits in the queue and goes out a few minutes later, so nothing is lost. If a webhook fails 20 times in a row for more than a day, we pause it and email the owners and admins. Once it's fixed, press Resume on the Connect tab.
When a delivery fails
The Connect tab shows what went wrong for every attempt. The usual causes:
- Connection refused, or Couldn't find that host
- The URL has a typo, or your server isn't running or can't be reached from the internet. Addresses like localhost only work on your own computer, so expose your app with a tunnelling tool while you build.
- Connection timed out, or Couldn't reach that server's network
- Formsoft couldn't open a connection to your server. Check that it's online, that a firewall isn't blocking outside traffic, and that the host has an IPv4 address (IPv6-only hosts can't be reached yet).
- Timed out after 10s
- Reply first, then do the slow work. Save the payload or put it on a queue, send back 200, and carry on from there.
- 401 or 403
- Usually the signature check. Make sure your app uses this webhook's signing secret (after a rotate, the old one stops working) and checks the raw body, not re-encoded JSON.
- 404 or 405
- The path is wrong or the route doesn't accept POST. Copy the exact URL your app or Zap gives you.
- A 3xx status
- We don't follow redirects. Use the final URL, often the https:// version or the one with or without a trailing slash.
- A 5xx status
- Your server ran into an error. Its logs will say why. We keep retrying for about a day, and you can resend from the delivery log once it's fixed.
- TLS certificate problem
- The certificate on your endpoint has expired, is self-signed, or doesn't match the host name.
Security
- Webhook URLs must use https:// and point to a public address. Local and private network addresses are refused.
- We don't follow redirects. Give us the final URL.
- Keep your signing secret private. If it leaks, rotate it on the Connect tab; the old one stops working straight away.
- File links in the payload are signed and expire after 24 hours.