Form ID

Webhooks

Webhook events and payloads, verifying the HMAC-SHA256 signature, ordering, retries, endpoint protection, replay and custom headers.

Webhooks push submission events to your server as they happen: new submissions, moves in and out of spam, and deletions. Deliveries are signed with the Standard Webhooks scheme, retried for about three days, and logged attempt by attempt in the dashboard. Ready-made handlers are in Receiving webhooks.

For Slack, Discord, Telegram, Google Sheets, Notion, Airtable, HubSpot, Attio or Pipedrive, you don't need a webhook: add an integration to the form instead.

Add an endpoint

  1. In the dashboard, open Webhooks and choose Add endpoint.
  2. Enter an HTTPS URL and pick one form, or all forms in the workspace.
  3. Choose the events it receives. A new endpoint receives submission.created only.
  4. Copy the signing secret. It starts with whsec_ and is shown in full only once.
  5. Send a test event to check your handler.

You can also add, change, disable and delete endpoints with the REST API or an AI agent connected to the MCP server. The secret is returned once there too.

Endpoint URLs

  • https: only, on the default port 443, with no username or password in the URL, up to 2,048 characters.
  • A public hostname. IP addresses, localhost, and names ending in .local, .internal, .intranet, .lan, .home.arpa or .onion are refused, as are ikiform.com, workers.dev and pages.dev.
  • The hostname must resolve only to public addresses. Private, loopback, link-local and carrier-grade NAT ranges are refused.
  • The URL is checked when you save it and again before every delivery. An endpoint that starts resolving to a private address is disabled.
  • A workspace can have up to 3 endpoints. Enterprise has no limit.

Events

Each endpoint receives only the events it subscribes to. Change them any time with Edit on the endpoint.

TypeSent whenSubscribed by default
submission.createdA submission is received, or a spam submission is marked as not spamYes
submission.updatedA submission is moved from received to spam, or back, in the dashboard or with the REST APINo
submission.deletedA submission is deleted in the dashboard or with the REST APINo
submission.spamA new submission is stored as spamNo
endpoint.testYou choose Send test on the endpoint page. Sent once, with no retriesAlways
  • Spam sends nothing unless the endpoint subscribes to submission.spam. Submissions held because the workspace is over its limit send nothing until they are released, then send submission.created.
  • Marking a submission as not spam sends submission.updated, and also submission.created to every endpoint subscribed to it that never received one for that submission.
  • Marking a submission as spam sends submission.updated and cancels its submission.created deliveries that haven't gone out yet.
  • Deleting a submission removes its earlier deliveries and sends submission.deleted, which carries ids only, never field values.

The request

Each delivery is a POST with a JSON body and three signature headers, sent from Ikiform's delivery service with the user agent Ikiform-Webhooks/1.0.

Headers
POST /webhooks/ikiform HTTP/1.1
content-type: application/json
user-agent: Ikiform-Webhooks/1.0
webhook-id: dlv_01k7v2d4n8r2p6s0w3y5b7c9e1
webhook-timestamp: 1792300000
webhook-signature: v1,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4=
HeaderValue
webhook-idThe delivery id. The same on every retry of the same delivery, so use it to ignore duplicates
webhook-timestampUnix seconds when this attempt was signed. New on every attempt
webhook-signaturev1, plus a base64 HMAC-SHA256. Several space-separated values while a secret rotates

Payloads

Every event has the same envelope: id, type, timestamp, api_version and data. The data of each type:

{
  "id": "dlv_01k7v2d4n8r2p6s0w3y5b7c9e1",
  "type": "submission.created",
  "timestamp": "2026-10-17T12:00:00.000Z",
  "api_version": "2026-10-17",
  "data": {
    "submission_id": "sub_01k7v2c9t3e8m5q4x6z0a1b2c3",
    "sequence": 17922384000000,
    "form": { "id": "frm_xxxxxxxxxxxxxxxx", "name": "Contact" },
    "fields": { "name": "Ada", "email": "ada@example.com", "message": "Hello" },
    "meta": {
      "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)",
      "origin": "https://example.com",
      "referrer": "https://example.com/contact",
      "country": "GB",
      "subject": null,
      "reply_to": "ada@example.com"
    },
    "created_at": "2026-10-17T12:00:00.000Z",
    "truncated": false
  }
}
FieldDescription
idThe delivery id, the same as webhook-id
typeThe event type
timestampWhen the delivery was created, in ISO 8601 UTC. The same on every retry
api_versionThe payload version the endpoint was created with, currently 2026-10-17
data.submission_idThe submission's id. Fetch it with the REST API
data.sequenceA number that grows with each change to the submission. Use it to put deliveries back in order
data.formThe form's id and name
data.fieldsThe stored values. With fields defined, these are the validated, coerced values
data.metaThe same keys as the REST API's meta. Every key is present and any value can be null. The visitor's IP and its hash are never sent
data.meta.user_agentThe browser's user agent, up to 512 characters
data.meta.origin, referrerWhere the post came from, when the browser sent them
data.meta.countryTwo-letter country code, from Cloudflare
data.meta.subject, reply_toFrom the _subject and _replyto fields
data.created_atWhen the submission was stored
data.truncatedtrue when the body would be over 256 KB, in which case fields is empty
data.status, previous_statusOn submission.updated: the new and the old status, received or spam. On submission.spam: always spam
data.spamOn submission.spam: the spam score and its reasons, such as honeypot or keyword
data.deleted_atOn submission.deleted, which has no fields, meta or created_at

Any meta value can be null. Treat field values as untrusted input, just like a form post to your own server.

Ordering and duplicates

Deliveries are not guaranteed to arrive in order. A retry can land after a newer event, and a slow endpoint can see a submission.updated before the submission.created it follows. Two values make that safe:

ValueUse it to
webhook-idIgnore duplicates. It is the same on every retry and on a replay, so it works as an idempotency key
data.sequenceOrder events for one submission. Keep the highest one you have applied per submission_id and skip any delivery with a lower or equal number
app/api/webhooks/ikiform/route.ts
import { verifyWebhook } from "@ikiform/sdk/webhooks";

export async function POST(request: Request) {
  const event = await verifyWebhook({
    payload: await request.text(),
    headers: request.headers,
    secret: process.env.IKIFORM_WEBHOOK_SECRET!,
  });
  if (event.type === "endpoint.test") return new Response(null, { status: 204 });

  const status =
    event.type === "submission.deleted"
      ? "deleted"
      : event.type === "submission.created"
        ? "received"
        : event.data.status;

  await db.query(
    `insert into leads (submission_id, sequence, status, delivery_id)
     values ($1, $2, $3, $4)
     on conflict (submission_id) do update
       set sequence = excluded.sequence, status = excluded.status, delivery_id = excluded.delivery_id
       where leads.sequence < excluded.sequence`,
    [event.data.submission_id, event.data.sequence, status, event.id],
  );
  return new Response(null, { status: 204 });
}

The where clause applies a delivery only if it is newer than what is stored, so a late submission.created can't bring back a deleted submission, and a retry of a delivery you already applied changes nothing.

Custom headers

Add up to 10 static headers under Headers when you add or edit an endpoint, for example an Authorization header that Zapier, n8n or your own gateway expects. They are sent with every delivery to that endpoint, tests included.

Headers
POST /hooks/catch/123456/abcdef HTTP/1.1
content-type: application/json
user-agent: Ikiform-Webhooks/1.0
authorization: Bearer zap_live_…
x-source: ikiform
webhook-id: dlv_01k7v2d4n8r2p6s0w3y5b7c9e1
webhook-timestamp: 1792300000
webhook-signature: v1,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4=
  • Names use letters, numbers and dashes, up to 64 characters. Values are printable ASCII on one line, up to 1,024 characters.
  • Values are stored encrypted and never shown again. The endpoint and its delivery log show only the names. Names are stored in plain text, so put secrets only in values, never in names. Leave a saved value blank to keep it, or enter a new one to replace it.
  • Headers Ikiform sets or that control the connection are refused: content-type, content-length, user-agent, host, cookie and similar, and any name starting with webhook-, cf-, x-forwarded-, proxy- or sec-. Ikiform's own headers always win.
  • Custom headers are not covered by the signature. A shared token proves less than a signature, so verify webhook-signature too whenever your receiver can.

Verify the signature

How the webhook signature is computed
webhook-id.webhook-timestamp.raw body

HMAC-SHA256, keyed with the base64-decoded secret after whsec_

webhook-signature: v1,base64(signature)

  • Use the raw request body exactly as received. Parsing and re-serializing JSON changes the bytes.
  • The header can hold several space-separated signatures. Accept the request if any v1 signature matches.
  • Compare in constant time, and reject timestamps more than 5 minutes from now.

With the SDK

verifyWebhook does all of the above with Web Crypto and returns the parsed event, or throws WebhookVerificationError with a reason. It accepts a Headers object or a plain record such as Node's req.headers.

app/api/webhooks/ikiform/route.ts
import { verifyWebhook, WebhookVerificationError } from "@ikiform/sdk/webhooks";

export async function POST(request: Request) {
  const payload = await request.text();
  try {
    const event = await verifyWebhook({
      payload,
      headers: request.headers,
      secret: process.env.IKIFORM_WEBHOOK_SECRET!,
    });
    if (event.type === "submission.created") {
      console.log(event.data.fields);
    }
    return new Response(null, { status: 204 });
  } catch (error) {
    if (error instanceof WebhookVerificationError) {
      return new Response(error.reason, { status: 400 });
    }
    throw error;
  }
}

Without the SDK

Any Standard Webhooks library works too. By hand it takes a few lines:

import { createHmac, timingSafeEqual } from "node:crypto";

const secret = Buffer.from(process.env.IKIFORM_WEBHOOK_SECRET.replace(/^whsec_/, ""), "base64");

export function verify(body, headers) {
  const id = headers["webhook-id"];
  const timestamp = headers["webhook-timestamp"];
  const signatures = headers["webhook-signature"];
  if (!id || !timestamp || !signatures) return false;
  if (Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return false;
  const expected = createHmac("sha256", secret).update(`${id}.${timestamp}.${body}`).digest();
  return signatures.split(" ").some((entry) => {
    const [version, signature] = entry.split(",");
    if (version !== "v1" || !signature) return false;
    const received = Buffer.from(signature, "base64");
    return received.length === expected.length && timingSafeEqual(received, expected);
  });
}

Signature verifier

Ignore the 5 minute window

Uses the SDK's verifyWebhook with Web Crypto in your browser. Nothing you paste leaves this page.

Responding

Your responseWhat Ikiform does
Any 2xx within 15 secondsMarks the delivery succeeded
410 GoneFails the delivery and disables the endpoint right away
429 or 503 with Retry-AfterRetries after that delay, but no later than the next step of the schedule
A redirectNot followed. Counts as a failure
Any other status, a timeout or a network errorRetries on the schedule below

Do slow work after responding, for example in a queue. The first 4 KB of your response body is saved in the delivery log.

Retries

A failed attempt is retried on this schedule, each delay with up to 20% random jitter either way. After the 9th attempt, about 3 d 6 h after the first, the delivery is marked failed.

Webhook retry schedule, with the delay before each attempt on a log scale
AttemptWait before itSince first
  1. 1now0 s
  2. 25 s5 s
  3. 35 min5 min
  4. 430 min35 min
  5. 52 h2 h 35 min
  6. 65 h7 h 35 min
  7. 710 h17 h 35 min
  8. 81 d1 d 18 h
  9. 91 d 12 h3 d 6 h

Dark bars show the shortest wait and light bars the longest, from 20% jitter either way. After attempt 9 the delivery is marked failed.

Endpoint protection

When an endpoint struggles, Ikiform slows down instead of piling on, and tells you when it stops or comes back.

SafeguardWhat happens
ConcurrencyAt most 5 requests are in flight to one endpoint at a time. The rest wait their turn
PauseAfter 20 failed attempts in a row, deliveries to the endpoint pause for 5 minutes. Each pause in a row doubles, up to 1 hour. One success ends it
DisableAfter 5 days with no successful delivery, the endpoint is disabled and the workspace's notification address, or its owners, get an email
RecoveredWhen an endpoint that had been failing for an hour or more succeeds again, the same address gets an email saying it recovered
  • Waiting for a free slot or for a pause to end doesn't use up an attempt. The delivery keeps all its retries.
  • Retries you start by hand and test events skip the pause, so you can check a fix right away.
  • The endpoint page shows one line when deliveries are paused, when your server is rejecting them with 4xx, or when they are failing.

Disabled endpoints

A 410 Gone response or a destination that becomes private disables an endpoint immediately, and so do 5 days of failures. A disabled endpoint receives nothing: new events are not queued for it, and deliveries still waiting fail. Turn it back on with Enabled on the endpoint page once it is fixed. Ikiform then offers to replay the deliveries that failed since it started failing, up to 7 days back.

Replaying failed deliveries

Choose Replay failed deliveries from the endpoint's menu and pick the last 24 hours, 3 days or 7 days. Every delivery created in that window that failed or was cancelled is sent again within about a minute, up to 1,000 at a time. If the endpoint is paused, replays wait for the pause to end. Replays keep their original webhook-id and sequence, so your duplicate and ordering checks still hold.

  • A delivery that had used all its attempts gets one more. One that stopped early, for example because the endpoint was disabled, continues its retry schedule.
  • Deliveries for a deleted form are skipped, and so are events that no longer match their submission: one that has been deleted, or a submission.created for a submission that is now spam.
  • Every retry and replay sends the exact body of the first attempt, byte for byte, even if the submission, form name or API version changed since. Only webhook-timestamp and webhook-signature are new, signed again so your check passes.
  • The endpoint must be enabled. Test events are never replayed.

Delivery logs

Each endpoint page lists its deliveries with their status. Expand one to see every attempt: when it ran, whether it was automatic, manual or a test, the status code, the duration, and the first 4 KB of your response or the error. Retry any delivery from there. Attempts are kept for 30 days and deliveries for 90 days.

Rotating secrets

Roll signing secret, or POST /webhooks/:endpointId/roll-secret, creates a new secret. For the next 24 hours every delivery is signed with both the old and the new secret, so webhook-signature holds two values and you can deploy the new secret without dropping events.