Webhooks
KinoForms can push events to your systems as they happen: a completed submission, an edit, a deletion, or a newly published form. Every delivery is signed using the Standard Webhooks scheme, retried with backoff for about a day, and recorded in a delivery log you can inspect and replay.
Manage endpoints in Settings → Webhooks (team owners and admins), or over the public API with an API key that has the webhooks:manage scope.
Events
| Event | Fires when |
|---|---|
submission.created | A response is completed. Partial saves fire once they are completed. |
submission.updated | A completed response's data or metadata is edited (dashboard, API, or respondent). |
submission.deleted | A completed response is deleted. Purging a deleted form does not fire per-response events. |
form.published | A form version is published. |
webhook.test | You clicked Send test or called the test endpoint. Only sent to that endpoint. |
An endpoint subscribes to one or more events and can optionally be limited to specific forms (empty = every form in the team).
Payload
Generic endpoints receive a JSON envelope:
{
"id": "evt_6f0d0c2b7d3a4a7c9b1e2f3a4b5c6d7e",
"type": "submission.created",
"timestamp": "2026-10-26T12:00:00.000Z",
"data": {
"teamId": "4c1f…",
"form": {
"id": "9a2b…",
"name": "Customer feedback",
"workspaceId": "1d3e…",
"status": "published",
"currentVersion": 3,
"publishedAt": "2026-10-20T09:15:00.000Z"
},
"submission": {
"id": "b7c8…",
"formId": "9a2b…",
"formVersion": 3,
"status": "completed",
"data": { "name": "Ada", "rating": 5 },
"metadata": {},
"respondentId": null,
"clientType": null,
"agentId": null,
"submittedAt": "2026-10-26T12:00:00.000Z",
"createdAt": "2026-10-26T11:58:40.000Z",
"updatedAt": "2026-10-26T12:00:00.000Z"
}
}
}form.published carries data.teamId and data.form. submission.deleted carries the last known submission.
Each request also includes:
| Header | Meaning |
|---|---|
webhook-id | The event id (evt_…). Stable across retries and manual resends — use it to deduplicate. |
webhook-timestamp | Unix seconds when this attempt was signed. |
webhook-signature | Space-separated v1,<base64> signatures. |
x-kinoforms-event | The event type. |
x-kinoforms-delivery | The delivery id (changes on resend). |
x-kinoforms-attempt | 1-based attempt number. |
Verifying signatures
Your endpoint secret looks like whsec_<base64>. It is shown once when you create the endpoint or rotate its secret.
The signed content is ${webhook-id}.${webhook-timestamp}.${raw body}, signed with HMAC-SHA256 using the base64-decoded part of the secret after whsec_. Compare against every v1, entry in webhook-signature (there are two during a rotation), use a constant-time comparison, and reject timestamps more than five minutes away from your clock. Always verify the raw request body, before any JSON parsing.
Any Standard Webhooks library works. Without one:
Node.js
import crypto from "node:crypto";
export function verifyKinoFormsWebhook(secret, headers, rawBody) {
const id = headers["webhook-id"];
const timestamp = headers["webhook-timestamp"];
const signatures = headers["webhook-signature"];
if (!id || !timestamp || !signatures)
throw new Error("missing webhook headers");
const now = Math.floor(Date.now() / 1000);
if (Math.abs(now - Number(timestamp)) > 300)
throw new Error("timestamp outside tolerance");
const key = Buffer.from(secret.replace(/^whsec_/, ""), "base64");
const expected = crypto
.createHmac("sha256", key)
.update(`${id}.${timestamp}.${rawBody}`)
.digest();
const valid = signatures.split(" ").some((entry) => {
const [version, value] = entry.split(",");
if (version !== "v1" || !value) return false;
const candidate = Buffer.from(value, "base64");
return (
candidate.length === expected.length &&
crypto.timingSafeEqual(candidate, expected)
);
});
if (!valid) throw new Error("invalid signature");
return JSON.parse(rawBody);
}
// Express: keep the raw body for verification.
// app.post("/hooks/kinoforms", express.raw({ type: "application/json" }), (req, res) => {
// const event = verifyKinoFormsWebhook(process.env.KINOFORMS_WEBHOOK_SECRET, req.headers, req.body.toString("utf8"));
// res.sendStatus(204);
// });Python
import base64
import hashlib
import hmac
import json
import time
def verify_kinoforms_webhook(secret: str, headers: dict, raw_body: bytes) -> dict:
msg_id = headers.get("webhook-id")
timestamp = headers.get("webhook-timestamp")
signatures = headers.get("webhook-signature")
if not msg_id or not timestamp or not signatures:
raise ValueError("missing webhook headers")
if abs(time.time() - int(timestamp)) > 300:
raise ValueError("timestamp outside tolerance")
key = base64.b64decode(secret.removeprefix("whsec_"))
signed = f"{msg_id}.{timestamp}.".encode() + raw_body
expected = base64.b64encode(hmac.new(key, signed, hashlib.sha256).digest()).decode()
for entry in signatures.split(" "):
version, _, value = entry.partition(",")
if version == "v1" and hmac.compare_digest(value, expected):
return json.loads(raw_body)
raise ValueError("invalid signature")Responding, retries, and auto-disable
- Return any 2xx within 10 seconds to acknowledge. Redirects (3xx) are not followed and count as failures.
- Failed attempts are retried after about 1 minute, 10 minutes, 1 hour, 6 hours, and 16 hours (±10% jitter): six attempts over roughly 24 hours.
- Deliveries can arrive more than once and out of order. Deduplicate on
webhook-idand usetimestamp/submission.updatedAtto order. - After 5 consecutive deliveries that exhaust every retry, the endpoint is disabled automatically and the reason is shown in the dashboard. Pending deliveries for it are cancelled. Re-enabling resets the streak.
- Manually disabling an endpoint pauses it: queued deliveries wait until you enable it again.
- Delivery history is kept for 30 days.
Delivery log, resend, and test
Each endpoint has a delivery log with status, attempt count, HTTP status, latency, a truncated response body, and the event payload. Resend starts a fresh attempt chain for the same event (same webhook-id). Send test queues a webhook.test event; tests work while an endpoint is disabled and do not affect its failure streak. Test and resend are limited to 10 per endpoint per minute.
Rotating the secret
Rotating returns a new secret once. For the next 24 hours every delivery is signed with both the new and the previous secret, so you can roll the receiver without dropping events.
Endpoint rules
- URLs must use
httpsand resolve to a public internet address. Private, loopback, link-local, and other reserved ranges are rejected, both when you save the URL and again at delivery time after DNS resolution. - Credentials in the URL and fragments are not allowed.
- Plan limits on the number of endpoints apply when paid plans are enabled.
Slack and Discord
Pick Slack or Discord as the destination to get a readable chat message instead of the raw JSON envelope.
- Slack: create an incoming webhook and paste its
https://hooks.slack.com/services/…URL. - Discord: in the channel's Integrations → Webhooks, create a webhook and paste its
https://discord.com/api/webhooks/…URL. Mentions in submission data are never expanded.
Chat presets are not signed in a way those services check; keep the incoming webhook URL private.
Zapier, Make, and n8n
Use the platform's webhook trigger (Zapier Webhooks → Catch Hook, Make Custom webhook, n8n Webhook node), paste its URL as a custom endpoint, then click Send test so the platform learns the payload shape. Map fields from data.submission.data. If the platform can run code, verify the signature with the snippets above.
API
All routes require an API key with webhooks:manage and return the standard { success, data } envelope.
| Method | Path | Purpose |
|---|---|---|
GET | /papi/v1/management/webhooks | List endpoints and plan limits |
POST | /papi/v1/management/webhooks | Create; returns data.secret once |
GET/PATCH/DELETE | /papi/v1/management/webhooks/{webhook_id} | Read, update, delete |
POST | /papi/v1/management/webhooks/{webhook_id}/test | Send a test event |
POST | /papi/v1/management/webhooks/{webhook_id}/rotate-secret | Rotate; returns data.secret once |
GET | /papi/v1/management/webhooks/{webhook_id}/deliveries | Delivery log (limit, status, before) |
POST | /papi/v1/management/webhooks/{webhook_id}/deliveries/{delivery_id}/resend | Resend |
curl -X POST https://dash.kinoforms.com/papi/v1/management/webhooks \
-H "x-api-key: $KINOFORMS_API_KEY" \
-H "content-type: application/json" \
-d '{"url":"https://example.com/hooks/kinoforms","events":["submission.created"]}'See the API reference for full schemas.
