Skip to Content
Deliver Submissions

Webhooks

Add a webhook Destination to send each Submission to your own service as signed JSON, with retries for about a day.

A webhook is a Destination that sends each new Submission to a URL on your own service. Insane Forms makes a POST request with a JSON body and signs it, so your service can check that the request is genuine.

Add a webhook

  1. Open the Form and select its Destinations tab.
  2. In the "Webhooks" section, select "Add webhook".
  3. Enter the address under "Webhook URL", for example https://example.com/hooks/forms. It must be a public HTTPS address.
  4. The "Signing secret" dialog shows the secret. Copy it and store it in your receiver. You can show it again from the row's menu with "Reveal secret".

The URL must use https://, have no username or password, and resolve to a public address. Private, loopback and link-local addresses are refused, and so is localhost.

What your service receives

A POST request with these headers:

content-type: application/json
user-agent: InsaneForms-Webhook/1
x-insane-forms-delivery: <delivery-id>
x-insane-forms-timestamp: <unix-seconds>
x-insane-forms-signature: v1=<hex>

The body names the event, the Delivery, and the Workspace, Site, Form and Submission:

{
  "type": "submission.created",
  "delivery": { "id": "<delivery-id>", "attempt": 1 },
  "workspace": { "id": "<workspace-id>", "slug": "<workspace-slug>" },
  "site": { "id": "<site-id>", "name": "Linden Studio" },
  "form": {
    "id": "<form-record-id>",
    "name": "Contact",
    "endpointUrl": "https://us.insaneforms.com/f/<form-id>"
  },
  "submission": {
    "id": "<submission-id>",
    "receivedAt": "2026-11-20T16:54:21.000Z",
    "url": "https://app.insaneforms.com/<workspace-slug>/sites/<site-id>/forms/<form-record-id>/inbox?s=<submission-id>",
    "fields": [{ "name": "email", "value": "ada@example.com" }],
    "files": [],
    "visitor": {
      "ip": "203.0.113.7",
      "userAgent": "Mozilla/5.0",
      "referrer": "https://lindenstudio.co/contact"
    }
  }
}

The files list holds fieldName, fileName, contentType, sizeBytes and url for each File. The URL needs a signed-in person with access. See Files. Every field and header is in Webhook payload.

Verify the signature

The signature is an HMAC-SHA256 of the timestamp, a dot and the raw request body, keyed with the signing secret, in hex and prefixed with v1=. Compute it over the raw bytes you received, before any JSON parsing.

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

function isFromInsaneForms(secret, headers, rawBody) {
  const timestamp = headers["x-insane-forms-timestamp"];
  const expected = `v1=${createHmac("sha256", secret)
    .update(`${timestamp}.${rawBody}`)
    .digest("hex")}`;
  const given = headers["x-insane-forms-signature"] ?? "";
  return (
    expected.length === given.length &&
    timingSafeEqual(Buffer.from(expected), Buffer.from(given))
  );
}

Reject a request whose timestamp is far from the current time, to block replays.

Respond

Return any 2xx status within 10 seconds. That marks the Delivery "Succeeded". Any other answer, a timeout or a connection error counts as a failed attempt. A redirect is not followed and counts as a failure. Insane Forms keeps the first 500 characters of your response with the attempt, which helps when you debug.

Retries and duplicates

A failed Delivery is retried for about a day, up to eight attempts in total. The Delivery stays "Pending" between attempts and becomes "Failed" after the last. See Destinations and Deliveries.

A Delivery may arrive more than once. Receivers must handle duplicates. Use x-insane-forms-delivery, or delivery.id in the body, to recognise a Delivery you already processed. delivery.attempt says which attempt this is.

See what happened

The Form's Deliveries tab lists each Delivery with its status. Select one to see every attempt, its response status and the start of its response. Failed Deliveries have "Re-send". Filter by "All", "Pending", "Succeeded" or "Failed".

Rotate the signing secret

Select "Rotate secret" in the row's menu and confirm. The current secret stops working right away, so update your receiver at once or it rejects every request. The Activity log records "Webhook secret rotated".

Turn off or remove a webhook

Use the row's On or Off switch to pause it without losing its history. "Remove webhook" deletes it and its Deliveries.

A webhook created by an MCP client or an API key starts Off until someone turns it On in the app.

On this page