# Validate Emails in Paperform Forms: Setup Guide

URL: https://email-validation.org/docs/guides/paperform/
Updated: 2026-12-03

> Documentation index: https://email-validation.org/llms.txt

Check the email addresses in your Paperform submissions. A small relay you deploy to your own Cloudflare account
receives each new submission from the form's webhook a few seconds after it arrives, checks its Email answers (up to 5)
and reports the result, tagged with the submission id, in its log, to your own URL or to Slack. It never changes or
deletes anything in Paperform. Download it:
[email-validation-paperform.zip](https://email-validation.org/downloads/paperform/email-validation-paperform.zip) holds `relay.mjs` (the relay)
and the MIT licence.

Paperform stores a submission before its webhook fires, so this cannot refuse an address while someone fills in the
form: every submit block Paperform documents (turning submissions off, a calculation field that returns `ERROR()`,
logic that hides the submit page) runs inside the form and calls no outside service. Its API has no call that changes a submission, so each result is tagged with the
submission id instead. To check an address before you accept it, check it in a form on your own site: see
[validate a sign-up form](https://email-validation.org/docs/guides/signup-form-validation/).

## What you need

- A Paperform plan with webhooks (Paperform offers them on some plans only).
- An API key of ours from the [API keys page](https://email-validation.org/app/api-keys/) with **Validate addresses**. A
  [daily credit cap](https://email-validation.org/docs/authentication/#limits) on the key limits what a busy form can spend. Each billable check
  uses one credit ([what is free](https://email-validation.org/docs/credits-and-billing/)).
- A Cloudflare account (the relay is a Worker you deploy from the Cloudflare dashboard, or with `npx wrangler`) and
  a webhook secret of 32 to 256 letters, digits, `_` or `-`, for example from `openssl rand -hex 32` or your
  password manager's generator.

## Deploy the relay

No terminal? [Deploy it from the Cloudflare dashboard](#relay-dashboard) instead. Or, from the unzipped folder:

```bash
npx wrangler deploy relay.mjs --name ev-paperform-relay --compatibility-date 2026-10-01
npx wrangler secret put EV_API_KEY --name ev-paperform-relay                 # our API key
npx wrangler secret put PAPERFORM_WEBHOOK_SECRET --name ev-paperform-relay   # the webhook secret
```

Then add the webhook in Paperform: in the form editor open **After Submission**, then **Integrations & Webhooks**,
and under **Webhooks** select **Add Webhook**. Enter the relay's address with the secret as its path, for example
`https://ev-paperform-relay.<your subdomain>.workers.dev/<your webhook secret>?form=<a label>` (the `form` part only
labels the reports, since the webhook does not name the form). Set **Triggered On** to **New Submission**, leave
**Custom headers** off and select **Create**. Paperform does not sign its webhooks, so this address is how the relay
knows a delivery came from your form: it answers `401` to any other address and never logs it. Treat the address as
a secret.

For each new submission it checks the answers of the Email questions (at most 5 per submission, a repeated address
once) and reports the status, reason and action of each: always in the Worker's log, with ids and results only,
never the address; and to a URL of yours and to a Slack incoming webhook, if you set them below. Act on the action
rather than the status: spam traps and known complainers are `valid` with the action `remove`.

Submit the form once with `no_mailbox@sandbox.email-validation.org` to see it work: the log shows `invalid` with the reason
`no_mailbox`, at no cost. Do it on a form that sends that address no email: it receives no mail, and the bounce
hurts your sender.

### Deploy the relay from the Cloudflare dashboard

1. In the [Cloudflare dashboard](https://dash.cloudflare.com/), open **Workers & Pages → Create** and choose
   **Create Worker**. Name it `ev-paperform-relay` and select **Deploy**.
2. Select **Edit code**, replace the starter code with the whole of `relay.mjs` from the unzipped folder and select
   **Deploy**.
3. In the Worker's **Settings → Variables and Secrets**, add `EV_API_KEY` and `PAPERFORM_WEBHOOK_SECRET` as type
   **Secret**, and any of the [settings](#settings) below the same way, then **Deploy**.
4. The relay's address is on the Worker's page. Add the webhook in Paperform as described above.

### Settings

| Setting | What it does |
|---|---|
| `EV_API_KEY` | Our API key (required) |
| `PAPERFORM_WEBHOOK_SECRET` | The secret path of the relay's address: 32 to 256 letters, digits, `_` or `-` (required) |
| `EV_REGION` | `eu` to have addresses validated in the EU and their results stored there (default `us`) |
| `EMAIL_FIELDS` | Comma-separated pre-fill keys (or custom pre-fill keys) of the Email questions to check (default: every Email question) |
| `FORWARD_URL` | An https address of yours that receives each submission's results as JSON |
| `FORWARD_SECRET` | Signs the forward: header `X-EV-Signature: sha256=<base64 HMAC-SHA256 of the body>` |
| `SLACK_WEBHOOK_URL` | A Slack incoming webhook |
| `NOTIFY_ON` | `all` (default) or `problems`: report only the results whose action is not `send` |
| `INCLUDE_EMAIL` | `true` to put the address in the forward and the Slack message (default: ids and results only) |
| `EVENTS` | A KV namespace binding (recommended), so a copy of a delivery within 24 hours is not checked again by any relay instance |

### How the relay answers Paperform

Paperform waits about 10 seconds for an answer and retries only when it cannot connect; a submission can be sent
again from the form's results page. The relay answers within 8 seconds. Once an address of a submission is checked,
it answers with success, and the same submission with the same addresses is not checked again for 24 hours (across
relay instances only with `EVENTS` bound). If our API is busy, or your key or credits need fixing, it answers with
an error and nothing is charged, so sending the submission again is safe once it is fixed. A check that timed out may
have been charged: that one is answered with success and reported as not checked. A webhook that keeps failing for
several days is disabled by Paperform; re-enable it from the webhook's menu.

Nothing here has been run against a real Paperform account yet: it is built from Paperform's public documentation
and tested against deliveries built from it.

## More on Paperform

- [Paperform email validation integration](https://email-validation.org/integrations/paperform/)
