> ## Documentation Index
> Fetch the complete documentation index at: https://crestform.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Send submissions to your own system with webhooks

> Post new responses, People changes and missed check-ins in a brand to an HTTPS endpoint, signed so you can check it came from Crestform.

A webhook sends what happens in a brand to a web address you choose, within seconds: new responses, deleted responses, people being added, changed or removed, and missed check-ins. Use it to feed your own system, your client database, or a tool like Zapier or Make. This page is the technical reference: what we send, how to verify it, and what happens when your endpoint is down.

> [!NOTE]
>
> Available on Plus, Pro and Business.

## Add an endpoint

**1. Open Integrations**

Go to **Settings** and open the **Integrations** tab.

**2. Open Create webhook**

Under **Webhooks**, click **Add endpoint**. A **Create webhook** panel opens on the right.

**3. Fill it in**

* **Name** (optional): such as "Client CRM", so you can tell endpoints apart.
* **URL**: must start with `https://`. Private and internal addresses are refused.
* **Format**: **Automatic** (recommended) sends JSON, or a Slack or Discord message when the address is one of theirs. Choose **Raw JSON**, **Slack** or **Discord** to always send that shape.
* **API version**: the payload version this endpoint is pinned to. Leave it on the latest.
* **Custom headers** (under **Advanced**): extra headers we send with every delivery, such as an `Authorization` header. See [Custom headers](#custom-headers).
* **Events**: tick what this endpoint is told about, or **Select all**. Each event has a **Schema** link to its example below.
* **Forms**: all forms, or only the ones you pick. This narrows response and check-in events only.

**4. Create**

Click **Create webhook**. The endpoint opens in its own panel, and you can **Send test** straight away.

By default an endpoint receives every completed submission on **every form in the brand**, including check-ins sent from Schedule. Partial submissions are not sent. Each brand has its own endpoints.

### Manage an endpoint

| Control | What it does |
| - | - |
| **Signing secret** | The key we sign each request with. Copy it into your receiver. |
| **Send to this endpoint** | Switch off to pause deliveries without losing the endpoint. Switch on to resume. |
| **Rotate secret** | Makes a new secret at once. Your receiver rejects deliveries until you update its copy. |
| **Edit** | Click an endpoint to open its side panel. Change its name, URL, format, events, forms and custom headers there. It has **Deliveries** and **Settings** tabs. |
| **Send test** | In the endpoint's **⋯** menu. Sends one example submission so you can check your receiver works. See below. |
| **Remove** | Deletes the endpoint. Deliveries waiting to retry are dropped. Adding the same address again gives it a new secret. |

Under each endpoint, a status line says how the last delivery went, with the HTTP status code or the error your server returned.

If a delivery fails and the retry fails too, the endpoint gets an amber **Failing** tag and one notice appears in the bell, naming the address's host. You get one notice per problem, not one per submission. The tag clears by itself after the next successful delivery.

### Send a test

Choose **Send test** from the endpoint's **⋯** menu (you are also offered it right after adding an endpoint). Crestform sends one example submission with made-up answers, using the question names from your most recently updated form. The body includes `"test": true`, which real submissions never carry, so you can ignore it in your system. A test has no real response behind it, so its submission id is `00000000-0000-0000-0000-000000000000`. A test is tried once and not retried, appears in **Recent deliveries** with a **Test** tag, and can be sent up to 10 times a minute per endpoint.

A Slack or Discord incoming webhook address can be added here too. Crestform recognises it and sends a readable message instead of the JSON below. See [Slack](https://crestform.io/docs/notifications/slack.md) and [Discord](#discord).

## Events

An endpoint listens for at least one of seven events. Choose them in the endpoint's side panel.

| Event | When it is sent |
| - | - |
| `submission.completed` (**New response**) | Someone finishes a form. Every endpoint listens for this until you change it. |
| `submission.deleted` (**Response deleted**) | A completed response is deleted, by your team or by the form's retention. Not sent when a whole form or brand is deleted. |
| `person.created` (**New person**) | Someone appears in People for the first time. |
| `person.updated` (**Person updated**) | A person's name, email, phone, fit label or flag changed. The `changed` list says which. A change of status is not sent here: it has its own event. |
| `person.status_changed` (**Status changed**) | A person moves to another status, by hand, in bulk or through a form's outcome rule. A person's first status counts as `person.created`, not a change. |
| `person.deleted` (**Person deleted**) | A person is deleted, so your other tools can remove them too. Not sent when a whole brand is deleted. |
| `checkin.missed` (**Check-in missed**) | A scheduled check-in went unanswered: its link expired, or a newer check-in replaced it. |

In the endpoint's panel the events are grouped as **Responses**, **People** and **Check-ins**.

People events and deleted responses are sent within seconds of the change. Failed deliveries are retried as described under [Timeouts and retries](#timeouts-and-retries).

**Check-in missed** works differently. Crestform looks for newly missed check-ins once a day, so the event arrives the morning after the check-in closed, not the moment it was missed. It only looks at check-ins missed in the last 3 days, so turning it on never sends a flood of old ones. Each missed check-in is sent once, and not at all if the person filled the form in after all.

### Choose which forms

Under **Forms**, choose **All forms** or pick the forms the endpoint covers. This narrows the two response events (`submission.completed` and `submission.deleted`) and `checkin.missed`, which belongs to the form the check-in asks. The other person events belong to no form, so they are never narrowed. Choosing forms here means you do not need to filter by form in Zapier or Make.

## The request

Each delivery is a `POST` with `Content-Type: application/json`.

| Header | Value |
| - | - |
| `X-Crestform-Signature` | `t=<unix seconds>,v1=<hex HMAC-SHA256>` |
| `X-Crestform-Event` | The event name, such as `submission.completed` |
| `X-Crestform-Delivery` | The delivery's ID. It stays the same across retries, so use it to ignore duplicates. |
| `X-Crestform-Version` | The payload version this endpoint is pinned to, currently `2026-09`. See [Versions](#versions). |
| `webhook-id` | The same delivery ID. |
| `webhook-timestamp` | When the request was signed, in unix seconds. |
| `webhook-signature` | `v1,<base64 HMAC-SHA256>`, in the [Standard Webhooks](https://www.standardwebhooks.com) format. |

Every body has `event`, `created_at` and `workspace` (the brand: `id`, `slug`, `name`). The rest depends on the event.

### New response

```json theme={null}
{
  "event": "submission.completed",
  "created_at": "2026-10-03T10:04:11.000Z",
  "workspace": { "id": "…", "slug": "north-physio", "name": "North Physio" },
  "form": { "id": "…", "slug": "new-patient", "name": "New Patient Intake" },
  "submission": {
    "id": "…",
    "submitted_at": "2026-10-03T10:04:11.000Z",
    "answers": {
      "email": "sam@example.com",
      "full_name": "Sam Carter",
      "phone": "+447700900123"
    },
    "source": {
      "channel": "instagram",
      "utm_source": "instagram",
      "utm_campaign": "october"
    }
  },
  "person": {
    "id": "…",
    "email": "sam@example.com",
    "first_name": "Sam",
    "last_name": "Carter",
    "phone": "+447700900123",
    "status": "booked",
    "fit_label": "Good fit",
    "flagged": false
  },
  "outcome": {
    "rule_id": "…",
    "rule_number": 2,
    "destination": "scheduler",
    "actions": ["set_status", "set_fit_label"]
  }
}
```

* `workspace` is the brand the form belongs to.
* `answers` is keyed by each question's **Field Name**, shown in the builder. It never changes once the question exists, so renaming a question does not break your mapping.
* `source` says where the respondent came from, or is `null` when nothing is known. Only keys with a value are included. See [The source object](#the-source-object) below and [track sources](https://crestform.io/docs/share/track-sources.md).
* `test` appears, set to `true`, only on a delivery sent with **Send test**. Real submissions do not include it.
* `person` is the person this response belongs to, as they are once the form's outcome rules have run, so `status`, `fit_label` and `flagged` already include what a rule just set. It is `null` when the form has no email question, because nobody can be matched.
* `outcome` says which outcome rule matched. `rule_number` counts from 1 in the order the rules are listed on the form's Outcomes screen (rules have no names). `rule_id` and `rule_number` are `null` when no rule matched. `destination` is where the respondent was sent: `thank_you`, `redirect` or `scheduler`. `actions` lists what the rule did, from `set_status`, `set_fit_label`, `flag` and `notify`, and is empty when nothing matched.
* Responses sent before `person` and `outcome` were added do not have them, so treat both as optional.
* Phone numbers arrive without spaces, emails trimmed, and numbers without currency signs or separators. See [Answer formats](#answer-formats).

### The source object

When `source` is present it always has `channel`. The other keys appear only when they have a value.

| Key | What it holds |
| - | - |
| `channel` | The one value Crestform groups by, such as `instagram`, `youtube`, `email`, `facebook-ad`, `google-ad`, a site's name like `coachblog.com`, or a `utm_source` we do not recognise, lowercased with dashes. |
| `utm_source`, `utm_medium`, `utm_campaign`, `utm_content`, `utm_term` | The UTM labels on the link, as they were written, trimmed to 100 characters. |
| `click` | Which ad platform sent the click: `facebook`, `google`, `tiktok`, `microsoft`, `linkedin` or `x`. Never the platform's click code. |
| `referrer` | The referring site's name only (`youtube.com`), never the full address. |
| `link` | The key of a Crestform named link, such as `ig` or `ig-sept`. |

The values on a link are whatever someone typed into it, so treat them as text and never run them. A response finished later from a recovery email keeps the source of the visit it started on.

### Response deleted

Ids only, because the answers are exactly what was just deleted. Use the id to remove the response from your own system.

```json theme={null}
{
  "event": "submission.deleted",
  "created_at": "2026-10-11T09:30:00.000Z",
  "workspace": { "id": "…", "slug": "north-physio", "name": "North Physio" },
  "form": { "id": "…", "slug": "new-patient", "name": "New Patient Intake" },
  "submission": { "id": "…" }
}
```

### New person

```json theme={null}
{
  "event": "person.created",
  "created_at": "2026-10-11T09:30:00.000Z",
  "workspace": { "id": "…", "slug": "north-physio", "name": "North Physio" },
  "person": {
    "id": "…",
    "email": "sam@example.com",
    "first_name": "Sam",
    "last_name": "Carter",
    "phone": "+447700900123",
    "status": "new",
    "fit_label": null,
    "flagged": false
  }
}
```

`first_name`, `last_name`, `phone` and `fit_label` are `null` when Crestform does not have them. `flagged` is `true` or `false`. Every `person` object in every event has these same keys.

### Status changed

```json theme={null}
{
  "event": "person.status_changed",
  "created_at": "2026-10-11T09:45:00.000Z",
  "workspace": { "id": "…", "slug": "north-physio", "name": "North Physio" },
  "person": {
    "id": "…",
    "email": "sam@example.com",
    "first_name": "Sam",
    "last_name": "Carter",
    "phone": "+447700900123",
    "status": "booked",
    "fit_label": null,
    "flagged": false
  },
  "previous_status": "new",
  "status": "booked",
  "source": "manual"
}
```

`source` says what changed it: `manual` (someone on your team), `bulk` (a bulk action in People) or `outcome_rule` (a form's outcome rule).

### Person updated

Sent when a person's contact details, fit label or flag change, whether from an outcome rule, a later response that fills in a name, or someone on your team editing them. `person` is how they are now, and `changed` lists which fields moved: any of `email`, `first_name`, `last_name`, `phone`, `fit_label` and `flagged`.

```json theme={null}
{
  "event": "person.updated",
  "created_at": "2026-10-11T10:15:00.000Z",
  "workspace": { "id": "…", "slug": "north-physio", "name": "North Physio" },
  "person": {
    "id": "…",
    "email": "sam@example.com",
    "first_name": "Sam",
    "last_name": "Carter",
    "phone": "+447700900123",
    "status": "booked",
    "fit_label": "Good fit",
    "flagged": true
  },
  "changed": ["fit_label", "flagged"]
}
```

A change of status is sent as [Status changed](#status-changed), not here.

### Person deleted

Sent when a person is deleted, with just enough to find their record in your own system and delete it too.

```json theme={null}
{
  "event": "person.deleted",
  "created_at": "2026-10-11T11:00:00.000Z",
  "workspace": { "id": "…", "slug": "north-physio", "name": "North Physio" },
  "person": {
    "id": "…",
    "email": "sam@example.com",
    "first_name": "Sam",
    "last_name": "Carter"
  }
}
```

It is not sent when a whole brand is deleted.

> [!NOTE]
>
> This event holds the person's email and name, so like every delivery it is cleared from delivery history after 30 days. Remove them from your own system when it arrives.

### Check-in missed

Sent once for each scheduled check-in that went unanswered, the morning after it closed. `checkin.due_on` is the day it was due, and `checkin.form` is the form the check-in asks.

```json theme={null}
{
  "event": "checkin.missed",
  "created_at": "2026-10-12T06:00:00.000Z",
  "workspace": { "id": "…", "slug": "north-physio", "name": "North Physio" },
  "person": {
    "id": "…",
    "email": "sam@example.com",
    "first_name": "Sam",
    "last_name": "Carter",
    "phone": "+447700900123",
    "status": "client",
    "fit_label": null,
    "flagged": false
  },
  "checkin": {
    "schedule_id": "…",
    "schedule_name": "Weekly check-in",
    "due_on": "2026-10-05",
    "form": { "id": "…", "slug": "weekly-check-in", "name": "Weekly Check-in" }
  }
}
```

Because it belongs to a form, a **Forms** choice on the endpoint narrows it.

### Versions

`X-Crestform-Version` is the payload version the endpoint was set up against, currently `2026-09`. A change that could break a receiver gets a new version, and existing endpoints stay on theirs: we never change what an existing version sends. Adding a key or a new event does not count as a change, so ignore keys you do not know.

## Answer formats

Phone, email, number, time and tick-box answers are tidied on our server before they are stored, so one value written five ways reaches you as one string. A response that never touched a browser arrives in the same shape as one typed on a phone.

| Question type | What arrives | Written on the form as |
| - | - | - |
| Phone | `"+447700900123"`, with no spaces, brackets, dashes or dots | `+44 7700 900 123`, `+44-7700-900-123`, `+44 (7700) 900123` |
| Email | `"sam@gmail.com"`: trimmed, domain in lowercase, no trailing full stop | ` Sam@Gmail.COM.` |
| Number | `1200`, with no currency sign or thousands separator | `£1,200`, `1 200` |
| Time | `"09:30"`, on the 24-hour clock, with no seconds | `9:30`, `09:30:00` |
| Tick boxes | A list with each choice once, in the order ticked | `["yoga", "yoga", "pilates"]` arrives as `["yoga", "pilates"]` |

> [accordion] Phone and email limits
>
> A phone keeps its `+` only if the respondent had one. We never guess a country, so someone who typed a national number reaches you as `"07700900123"`, digits with no country code. The country picker adds the `+` when it is used, so most answers have one, but treat it as present or absent rather than guaranteed. A phone is always a string, never an object.
>
> An email's part before the `@` keeps its capitals, because that part is case-sensitive by specification. Only the domain is lowercased. Compare addresses without regard to case, as Crestform does when it matches People.

> [accordion] Limits
>
> Answers outside these limits are refused when the form is submitted, so they never reach you. An email is at most 254 characters and a web address at most 2048. A date is a real day written `2026-10-14`. A rating is a whole number. A file or signature answer is the file's name, at most 255 characters. A tick-box list is never longer than the question's options, plus one typed "Other" answer.

> [accordion] Older responses are not rewritten
>
> Nothing changes what was already stored. Responses taken before 20 September 2026 carry exactly what the respondent typed, spaces and all, and responses before 8 September 2026 often carry a phone with no country code.

> [accordion] Sliders
>
> A slider with one handle arrives as a number, such as `40`. A range slider with two handles arrives as a list of two numbers, lowest first, such as `[50, 100]`. It is always the bare figure. The prefix, suffix and thousands separator shown on the form (`$1,250 kg`) are for display only and never reach you.

> [accordion] Choice questions with an Other option
>
> A choice answer is normally one of the question's option values, such as `"option_2"`, or a list of them for tick boxes. When the form has an "Other" choice and the respondent picks it, you receive the text they typed instead, up to 200 characters: `"Pilates"`, or `["yoga", "Pilates"]` for tick boxes (at most one typed entry). There is no `"other"` marker: an answer that is not one of the option values is the Other answer. Questions without "Other" are unchanged.

## Verify the signature

The quickest way is the official `standardwebhooks` library. It checks the `webhook-*` headers with the same `whsec_…` signing secret, and refuses old deliveries.

```js theme={null}
import express from "express";
import { Webhook } from "standardwebhooks";

const app = express();
const wh = new Webhook(process.env.CRESTFORM_SECRET); // whsec_…

// express.raw keeps the exact bytes; express.json would discard them.
app.post("/crestform", express.raw({ type: "application/json" }), (req, res) => {
  try {
    const event = wh.verify(req.body.toString("utf8"), req.headers);
    // ...handle event
    res.sendStatus(200);
  } catch {
    res.status(400).send("Bad signature");
  }
});
```

Libraries exist for other languages too. To check without one, `X-Crestform-Signature` carries the same proof:

Compute an HMAC-SHA256 over `{t}.{rawBody}` with your signing secret, where `t` comes from the header and `rawBody` is the request body exactly as received. Compare the result with `v1` in constant time.

> [!WARNING]
>
> Sign the raw body bytes. If you parse the JSON and turn it back into a string first, the key order and spacing change and the signature will not match.

```js theme={null}
import express from "express";
import { createHmac, timingSafeEqual } from "node:crypto";

const app = express();
const SECRET = process.env.CRESTFORM_SECRET; // whsec_…

function verify(rawBody, header, toleranceSeconds = 300) {
  const parts = Object.fromEntries(
    header.split(",").map((p) => p.split("=").map((s) => s.trim())),
  );
  if (!parts.t || !parts.v1) return false;

  // Refuse old or post-dated deliveries so a captured one cannot be replayed.
  if (Math.abs(Date.now() / 1000 - Number(parts.t)) > toleranceSeconds) {
    return false;
  }

  const expected = createHmac("sha256", SECRET)
    .update(`${parts.t}.${rawBody}`)
    .digest("hex");

  const a = Buffer.from(parts.v1);
  const b = Buffer.from(expected);
  return a.length === b.length && timingSafeEqual(a, b);
}

// express.raw keeps the exact bytes; express.json would discard them.
app.post("/crestform", express.raw({ type: "application/json" }), (req, res) => {
  const header = req.get("X-Crestform-Signature") ?? "";
  if (!verify(req.body.toString("utf8"), header)) {
    return res.status(400).send("Bad signature");
  }
  const event = JSON.parse(req.body.toString("utf8"));
  // ...handle event
  res.sendStatus(200);
});
```

In Express, the raw body means `express.raw({ type: "application/json" })`, as above. `express.json()` has already parsed the body and thrown the bytes away by the time your handler runs.

> [accordion] Verifying in n8n
>
> Use the Webhook node with **Raw Body** switched on, then a Crypto node (HMAC, SHA256) over the timestamp, a full stop and the body: `{{ $json.headers['x-crestform-signature'].split('t=')[1].split(',')[0] }}.{{ $json.body }}`. Compare the result with the `v1` part of the header. Inside a private n8n instance you can skip verification and rely on the address being hard to guess. That is your call.

## Format

Each endpoint has a **Format**, set when you add it and changeable later in its side panel.

| Format | What is sent |
| - | - |
| **Automatic** (default) | Crestform decides from the address. A Slack or Discord incoming webhook address gets a readable message in that app's format. Everything else gets the JSON on this page. |
| **Raw JSON** | Always the JSON on this page, even to an address that looks like Slack or Discord. Useful when your own server sits in front of one. |
| **Slack** | Always Slack's message format, such as for a Slack-compatible tool on its own address. |
| **Discord** | Always Discord's message format. |

Existing endpoints stay on **Automatic**, so nothing changes for them.

## Custom headers

Under **Advanced** in an endpoint's panel you can add up to 5 headers, each a name and a value, that we send with every delivery. Use them when your receiver wants a key in a header, such as `Authorization: Bearer …` or `X-Api-Key`.

* Values are kept like the signing secret. They are not shown on the page after you save, and only people who can edit the brand can see them when editing the endpoint.
* Each value must be plain text on one line, up to 1,000 characters.
* Names Crestform sets itself cannot be used, so the headers in [The request](#the-request) always mean what they say. That includes `Host`, `Content-Type`, `Content-Length`, `User-Agent`, `Cookie`, anything starting `X-Crestform-`, `webhook-`, `Proxy-` or `Sec-`, and a few others that describe the request itself.
* A name can only be listed once.

Custom headers do not replace the signature. Your receiver can still check `X-Crestform-Signature` on top of its own key.

## Discord

Paste a Discord incoming webhook address (it starts `https://discord.com/api/webhooks/…`; `discordapp.com`, `ptb.discord.com` and `canary.discord.com` work too) and Crestform sends Discord's message format on its own, like Slack. Every event gets a readable message. Nothing a respondent wrote can mention or ping anyone, and links in answers are shown as plain text, not clickable. Create the address in Discord under **Channel settings** → **Integrations** → **Webhooks**.

## Timeouts and retries

* Return any `2xx` status within **10 seconds**. Anything slower counts as a failure.
* Redirects are **not followed**. A `3xx` response counts as a failure, so give us the final address.
* A failed delivery is tried again, up to **6 attempts** in total, waiting roughly 1 minute, 5 minutes, 25 minutes, 2 hours and then 6 hours between attempts.
* After the last attempt the delivery is **dead-lettered**: it stops retrying, keeps its error and attempt count, and shows as **Failed** with a **Retry** button.

Removing an endpoint, or switching **Send to this endpoint** off, stops any retries still waiting.

> [!NOTE]
>
> Retries are picked up by a scheduled job, which currently runs once a day. Those gaps are the intended schedule, and a retry can wait until the next run. Do not rely on a fast retry.

Make your receiver safe to call twice. If it processed a request but did not return `2xx` in time, you will see the same `X-Crestform-Delivery` ID again, so use that ID to ignore duplicates.

## Addresses we refuse

An endpoint address is checked when you save it, and again against the address it resolves to before every send. These are refused:

* Anything that does not start with `https://`.
* Addresses containing a username or password.
* `localhost`, single-word hosts, and names ending in `.local` or `.internal`.
* Loopback, private, link-local, carrier-grade NAT, multicast and broadcast addresses, in both IPv4 and IPv6. That includes unusual spellings such as `127.1`, `0x7f.0.0.1` or `2130706433`, and IPv4 addresses wrapped in IPv6 (`::ffff:127.0.0.1`).

The second check catches a name that pointed to a public server when you saved it and points somewhere internal now.

## Recent deliveries

The **Recent deliveries** card on the same tab lists the last 20 attempts across every endpoint in the brand. Each row shows the event, the time and the number of attempts:

* A green status code means it was delivered.
* **Retrying** means another attempt is on its way.
* **Failed** shows the error your server returned. Click **Retry** to send it again now. The endpoint must be switched on.

Open a delivery to see how long your server took to answer and the start of its reply, which usually explains a failure. Each endpoint's **Deliveries** tab lists its own attempts. **Retry failed** there sends every failed delivery from the last 7 days again (up to 500), and **Redeliver** sends one again. Tests, and deliveries whose answers were removed, are skipped.

Nothing listed yet? Choose **Send test** from an endpoint's **⋯** menu.

> [!NOTE]
>
> Answers are removed from delivery history when you delete a response, and from any delivery older than 30 days. The row stays, so you can still see that it was sent and whether it arrived, but a delivery whose answers were removed cannot be retried. Save what you need in your own system when it arrives.

## Related

> [card] [Zapier and Make](https://crestform.io/docs/integrations/zapier-and-make.md)
>
> Connect thousands of apps with no code.

> [card] [Slack](https://crestform.io/docs/notifications/slack.md)
>
> Post each submission into a channel.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.