# Send responses to your app with webhooks

> Send each new response to a form, signed, to your CRM or any app that takes a webhook, as soon as it's in.

Plan: Pro and up · Last updated: November 23, 2026

This is the Markdown of https://sentraform.com/guides/webhooks. Every Sentraform guide is listed at https://sentraform.com/llms.txt.

A webhook sends each new response to a form to an address you choose: your CRM, your own app, or any automation tool that takes a webhook. Each request is signed, so your app can tell it came from Sentraform.

## How it works

You add an endpoint to a form: a web address that takes a POST. Each time the form gets a new response, Sentraform sends it to that address as JSON, within seconds. If your app doesn't answer, Sentraform tries again later. Each form has its own endpoints.

## Before you start

- **A Sentraform workspace on Pro or up.** Webhooks come with Pro and up. On a plan without them, Management → Webhooks shows what the plan needs.
- **An Owner or an Admin of the workspace,** or a custom role that manages settings. Others can't see or change a form's webhooks, and neither can Sentraform support.
- **An address that starts with `https://`.** It must be a public address on the internet. Addresses on a private network are refused (see [Addresses Sentraform won't send to](#addresses-sentraform-wont-send-to)).

**HIPAA workspaces.** Webhooks are off in a HIPAA workspace while its connections are off (**Security → HIPAA**). Adding, testing or turning on an endpoint is refused, and no response is sent. With connections on, each delivery sends the response's answers outside Sentraform, to your endpoint.

## Add an endpoint

1. Open [your forms](https://sentraform.com/app) and open the form.
2. Open **Management**, then **Webhooks**.
3. Under **Add an endpoint**, paste your app's webhook address and choose **Add**.
4. Copy the **signing secret** right away and keep it in your app. It's shown only this once. Your app uses it to check each request (see [Check the signature](#check-the-signature)).
5. Choose **Send test**. Sentraform sends a sample response to the endpoint now, and the result shows under **Latest deliveries**.

A form can have up to 5 endpoints. Each one can be turned on or off, and deleted. **Example payload** shows what this form sends, with sample answers.

## What's sent

One event: `response.submitted`. It's sent once for each new response, to each of the form's endpoints that's on, after the response is stored. A response the spam filter turns away is never sent. A response held because the workspace is past its plan's responses for the month is sent once it's released, with its own `submitted_at`.

The request:

```
POST <your endpoint>
Content-Type: application/json
User-Agent: Sentraform-Webhooks/1.0 (+https://sentraform.com)
Sentraform-Event: response.submitted
Sentraform-Delivery: 3e5a7c91-4f2b-4d8e-b6a0-9c1d2e3f4a5b
Sentraform-Signature: t=1795097002,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd
```

The body, for a short application form:

```json
{
  "event": "response.submitted",
  "version": 1,
  "delivery_id": "3e5a7c91-4f2b-4d8e-b6a0-9c1d2e3f4a5b",
  "created_at": "2026-11-19T14:03:22.240Z",
  "test": false,
  "form": {
    "id": "6f1c2a9e-4b7d-4e3a-8c5f-2d9b1e0a7c34",
    "name": "Business funding application"
  },
  "response": {
    "id": "7d0f3c8e-2b14-4a6d-9e57-3c1b8a2f6d40",
    "submitted_at": "2026-11-19T14:03:22.118Z",
    "url": "https://sentraform.com/app?form=6f1c2a9e-4b7d-4e3a-8c5f-2d9b1e0a7c34&response=7d0f3c8e-2b14-4a6d-9e57-3c1b8a2f6d40",
    "answers": {
      "q_business": {
        "label": "Business name",
        "type": "short_text",
        "value": "Harbor Street Bakery LLC",
        "text": "Harbor Street Bakery LLC"
      },
      "q_amount": {
        "label": "How much funding do you need?",
        "type": "currency",
        "value": 75000,
        "text": "75000"
      },
      "q_pay_for": {
        "label": "What will it pay for?",
        "type": "multi_select",
        "value": ["opt_7c21", "__other"],
        "text": "Equipment, Other: Bridge financing for a contract",
        "other_text": "Bridge financing for a contract"
      },
      "q_ein": {
        "label": "EIN",
        "type": "short_text",
        "value": null,
        "text": null,
        "sensitive": true
      },
      "q_statements": {
        "label": "Last 3 months of bank statements",
        "type": "file",
        "value": [{ "name": "statements.pdf", "size": 482113, "content_type": "application/pdf" }],
        "text": "statements.pdf"
      }
    },
    "hidden_fields": {
      "utm_source": "google"
    }
  }
}
```

- **`answers`** has every question on the form, by its id, in order. Each has its `label`, its `type`, the answer as stored (`value`) and as read (`text`). An unanswered question keeps its `label` and `type`, with `value` and `text` `null`.
- **Choices** come as their ids in `value` and their labels in `text`. An answer that chose "Other" reads "Other: their text" in `text`, and carries what they typed in `other_text`.
- **`delivery_id`** stays the same on every retry of a delivery. It's also in the `Sentraform-Delivery` header.
- **`test`** is `true` for **Send test**, with sample answers and a made-up response.
- **`response.url`** opens the response in Sentraform, for the workspace's members, signed in.
- **`hidden_fields`** has the form's hidden fields by name. On a form that scores leads or assigns reps, a `lead` object adds the grade, the score and the assigned rep.

**Never sent:**

- **Sensitive answers.** A question marked sensitive comes with `sensitive: true` and no value or text.
- **Files.** A file upload sends its files' names, sizes and types: never their contents, and never a link to them.
- **Signature drawings.** A signature sends who signed, how, when and its envelope ID: never the drawing.

## Check the signature

Every request has a `Sentraform-Signature` header:

```
Sentraform-Signature: t=<unix seconds>,v1=<hex>
```

The hex is an HMAC-SHA256 of the timestamp, a period and the raw request body (`<t>.<body>`), keyed with the endpoint's signing secret. The secret is the whole string, `sfwhsec_` included.

To check a request:

1. Read the raw body, before any JSON parsing.
2. Compute HMAC-SHA256 of `<t>.<body>` with your secret. Compare it with each `v1` in the header, in constant time. One match is enough.
3. Turn away a `t` more than 5 minutes from your own clock, either way, so an old request can't be replayed.

In Node.js, with Express:

```js
import express from 'express'
import { createHmac, timingSafeEqual } from 'node:crypto'

const SECRET = process.env.SENTRAFORM_WEBHOOK_SECRET // sfwhsec_…

function fromSentraform(header, body, secret, toleranceSec = 300) {
  let timestamp = null
  const signatures = []
  for (const part of String(header ?? '').split(',')) {
    const [key, value = ''] = part.split('=', 2).map((s) => s.trim())
    if (key === 't' && /^\d+$/.test(value)) timestamp = Number(value)
    if (key === 'v1' && /^[0-9a-f]{64}$/.test(value)) signatures.push(value)
  }
  if (timestamp === null || Math.abs(Date.now() / 1000 - timestamp) > toleranceSec) return false
  const expected = createHmac('sha256', secret).update(`${timestamp}.`).update(body).digest()
  return signatures.some((sig) => timingSafeEqual(Buffer.from(sig, 'hex'), expected))
}

const app = express()
app.post('/webhooks/sentraform', express.raw({ type: 'application/json' }), (req, res) => {
  if (!fromSentraform(req.get('Sentraform-Signature'), req.body, SECRET)) return res.status(400).end()
  const event = JSON.parse(req.body.toString('utf8'))
  res.status(200).end() // answer at once, then do the work
  handle(event) // a retry keeps its delivery_id: skip one you've already handled
})
```

**Lost the secret?** On the endpoint, choose **New secret**. The new one shows once, and the old one stops working at once, so update your app right away.

## Delivery and retries

- **Success is any 2xx answer.** Answer at once and do the work afterwards: Sentraform waits 10 seconds at most.
- **Redirects aren't followed.** A 3xx answer counts as a failure.
- **Retries.** After a failure, Sentraform waits about 1 minute, then 5, 25 and 125 minutes, then up to 6 hours between tries. A delivery gets 8 tries in all, the first included: about 20½ hours from the first to the last. Then it's marked **Failed**.
- **At least once.** A delivery can arrive more than once. Use `delivery_id` to skip one you've already handled, or `response.id` to handle each response once.
- **Order isn't guaranteed.** A retried delivery can arrive after a newer one.
- **Turned off,** an endpoint gets no new responses, and deliveries waiting for a retry are marked failed. Turning it on again sends nothing old by itself: use **Redeliver**.

## The delivery log

**Latest deliveries** lists each endpoint's latest 20 deliveries: the event, the status (Sending, Retrying, Delivered or Failed, with why), the HTTP code, the attempts and the time. Finished deliveries stay in the log for 30 days.

**Redeliver** sends a finished delivery's response again, now, as a new delivery with a new `delivery_id`. A Redeliver and a **Send test** are tried once each, while you wait. A workspace can make 30 of them every 10 minutes.

## Addresses Sentraform won't send to

The address is checked when you add it, and again before every try:

- It must start with `https://`, have no user name or password in it, and be at most 2,048 characters.
- Its host needs a dot in it. Names like `intranet`, `*.internal`, `*.local` and `*.localhost` are refused.
- Every address its name points to must be public. Private networks (like `10.x.x.x` or `192.168.x.x`), this-computer addresses (`127.0.0.1`) and cloud metadata addresses are refused.

## Troubleshooting

### "Enter an address that starts with https://."

The address uses `http://`. Use your app's `https://` address.

### "Enter a full web address, like https://example.com/webhooks."

What was pasted isn't a full web address. Paste your app's whole `https://` address.

### "This form already sends to that address."

Each address can be added to a form once. Use the endpoint you have.

### "A form can send to 5 endpoints at most. Delete one to add another."

Delete an endpoint you no longer use, then add the new one.

### A delivery says "Not sent: the address is on a private network."

The address now points to a private network. Use a public address for your app.

### Your app turns every request away

- Check you're using this endpoint's current secret. After **New secret**, the old one stops working.
- Check the signature against the raw body, before any JSON parsing changes it.
- Check your server's clock: a `t` more than 5 minutes off is turned away.

### Deliveries keep retrying

Open **Latest deliveries** to see why: no answer within 10 seconds, a redirect, or an error code from your app. Once your app answers with a 2xx, choose **Redeliver** on the ones that failed.

## Still need help?

[Contact support](https://sentraform.com/contact?topic=support&guide=webhooks), or email support@sentraform.com.
