Webhooks and integrations

Besides email, a form can send each submission to your own server as signed JSON, and to Slack, Discord, Zapier, Google Sheets, Notion and Telegram. This page covers the webhook's payload and signature, retries, and what arrives in each integration. All of them are connected on the form's Delivery tab.

Last updated

Signed JSON webhook

Add a webhook with your https address. FormRelay sends each accepted submission to it as a POST with a JSON body. A form can have up to 5 webhooks, counting Slack and Discord.

{
  "id": "0193a1b2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
  "form": { "id": "0193a1a0-1f2e-7d3c-9b4a-5c6d7e8f9a0b", "name": "Contact" },
  "received_at": "2026-11-24T10:15:30.123Z",
  "origin": "https://example.com",
  "fields": {
    "name": "Ada Lovelace",
    "email": "ada@example.com",
    "message": "Hello"
  },
  "files": [],
  "ai": null
}
PropertyMeaning
idThe submission's id. The same one the submit answer and the API give.
formThe form's id and name.
received_atWhen FormRelay accepted it, as an ISO 8601 time in UTC.
originThe site the form was posted from, or null.
fieldsAn object with every field of the submission. All values are strings. The special fields are not included.
ainull, unless the form uses AI triage. Then an object with category, urgency, language, summary and extracted.

When the submission came with files, files lists them: each has id, field, name and size in bytes (and the field itself holds the file's name). files is an empty list otherwise. The bytes aren't in the webhook; read one with the API (not on a form that keeps nothing once delivered: its files are gone by then). Chat and sheet integrations show the file's name.

The example is spread over several lines to be readable. The real body is compact. New properties may be added over time, so ignore the ones you don't know.

What counts as delivered

  • Any 2xx status. Answer quickly: the request times out after 10 seconds. The response body is not read.
  • Redirects are not followed. Give the final address.
  • The address must be public. One that resolves to a private or local network is refused.
  • Requests carry Content-Type: application/json and User-Agent: FormRelay-Webhooks/1.0.

Verify the signature

Each JSON webhook has its own signing secret, shown under "Signing secret" on its card. Every request carries this header:

X-FormRelay-Signature: t=1795515330,v1=5f2b…c9a1
  • t is the time the request was signed, in seconds since 1970 (Unix time).
  • v1 is the HMAC-SHA256, in lower-case hex, of the text t, a dot, and the exact request body. The key is your signing secret as text.

To verify a request, compute the same value from the raw body and compare. Also check that t is recent, so an old request can't be replayed. In Node, with Express:

import crypto from 'node:crypto';
import express from 'express';

const app = express();
const secret = process.env.FORMRELAY_WEBHOOK_SECRET; // whsec_…


// The signature covers the exact bytes we sent, so read the raw body before parsing it.

app.post('/hooks/forms', express.raw({ type: 'application/json' }), (req, res) => {
  const header = req.get('X-FormRelay-Signature') ?? '';
  const parts = Object.fromEntries(header.split(',').map((part) => part.split('=')));

  const expected = crypto.createHmac('sha256', secret)
    .update(`${parts.t}.`)
    .update(req.body)
    .digest();
  const given = Buffer.from(parts.v1 ?? '', 'hex');
  const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300;

  if (given.length !== expected.length || !crypto.timingSafeEqual(given, expected) || !fresh) {
    return res.status(400).end();
  }

  const submission = JSON.parse(req.body);
  console.log(submission.id, submission.fields);
  res.status(204).end();
});

app.listen(3000);

Compute the signature over the bytes you received, before any JSON parsing: parsing and writing the JSON again can change it. Slack, Discord and Zapier requests are not signed.

Retries

A webhook that doesn't answer with a 2xx status is tried again a couple of minutes later, up to 5 attempts in all. After that the delivery is marked failed and the submission appears under Needs attention in the inbox. Each retry is signed again with a new t.

  • Delivery is at least once. A request you answered too slowly may arrive again, so use id to skip a submission you already have.
  • From a message in the inbox you can send one webhook delivery again.
  • "Send a test" on a webhook's card posts a sample submission to it. Nothing is saved, and it can be used once every 30 seconds.

Slack

Paste the URL of a Slack incoming webhook. Each submission is posted to that channel as a text message: a line saying which form it is for, then one line per field as name: value. Characters that would make links or mentions in Slack are escaped, so a submission can't ping your channel. Long messages are cut at about 3,000 characters.

Discord

Paste the URL of a Discord channel webhook. The message has the same lines as in Slack. Markdown and mention characters are escaped and mentions are turned off, so a submission that says @everyone notifies nobody. Long messages are cut at about 1,900 characters.

Zapier

The FormRelay app isn’t in Zapier’s public directory yet. Until it is, use Zapier’s own webhook trigger with the JSON webhook, as under Make below. Once it’s listed: in Zapier, choose the FormRelay app's New Submission trigger and connect it with an API key, which the workspace owner makes under API in the dashboard. When you turn the Zap on it appears on the form's Delivery tab. Each submission starts the Zap with the same JSON as the webhook above. A form can have up to 20 Zaps, and turning a Zap off in Zapier removes it here.

Make and other automation tools

Use the JSON webhook. In Make, add a custom webhook module, copy its address and add it to the form as a webhook. The same works for any tool that can receive a JSON POST.

Google Sheets

Connect a Google account and FormRelay creates a sheet in that account's Drive, then adds a row for every submission. It asks Google only for access to the files it creates.

  • Each field goes in the column whose header has its name. A field with no column gets a new one at the end.
  • You can reorder columns and add your own. Don't rename the header cells FormRelay adds.
  • Values are written as plain text, never as formulas.
  • Rows stay in your sheet after the form's retention clears the submission in FormRelay.

Notion

Connect a Notion workspace and choose a page you shared. FormRelay creates a database under it and adds a page for every submission. The page's title is the name field, or else subject. Each field becomes a text property, added to the database the first time it is seen. You can add your own properties. Pages stay in Notion after the form's retention clears the submission in FormRelay.

Telegram

Connecting gives you a link that works once, for an hour. Open it in Telegram and press Start to get submissions in a chat with FormRelay's bot, or use the group link to add the bot to a group. Each submission arrives as a plain-text message with the same lines as in Slack. Removing the bot from the chat stops it.

Good to know

  • Slack and Discord are on every plan. The signed JSON webhook and Zapier are part of Pro and Business; on Free, the dashboard offers them once you upgrade, and after a move to Free they get nothing until you upgrade again.
  • If a card on the Delivery tab says "Coming soon", that integration isn't available yet.
  • Spam is never sent to a webhook or an integration.
  • A connection that stops working, for example because access was withdrawn, is marked "Needs attention" on its card, and the owner gets one email about it.
  • What arrives in these tools is kept under your own arrangements with them. FormRelay's retention applies only to its own copy. See Data and privacy.

Something missing or wrong? Email support@domodomu.com. New to FormRelay? See what it does or start free.