Integrations · Forms

Validate emails in Forminit forms

Check the email addresses in your Forminit form submissions (Forminit is the new name of Getform). A small relay you deploy to your own Cloudflare account receives each new submission from the form's webhook step a few seconds after it arrives, checks Forminit's signature, checks the sender's email 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 Forminit. Download it: email-validation-forminit.zip holds relay.mjs (the relay) and the MIT licence.

Forminit stores a submission before its webhook step runs, and its webhook docs document no answer that refuses one, so this cannot refuse an address while someone fills in the form. To check an address before you accept it, check it in a form on your own site: see validate a sign-up form.

What you need

  • A Forminit account: its Free plan allows one Send webhook step per form, Pro and above as many as you need.
  • An API key of ours from the API keys page with Validate addresses. A daily credit cap on the key limits what a busy form can spend. Each billable check uses one credit (what is free).
  • A Cloudflare account (the relay is a Worker you deploy from the Cloudflare dashboard, or with npx wrangler).

Deploy the relay

No terminal? Deploy it from the Cloudflare dashboard instead. Or, from the unzipped folder:

npx wrangler deploy relay.mjs --name ev-forminit-relay --compatibility-date 2026-10-01
npx wrangler secret put EV_API_KEY --name ev-forminit-relay   # our API key

Then add the webhook step in Forminit: open the form, select Workflow, select + under Submission received and choose Send webhook. Select the step and enter the relay's address, https://ev-forminit-relay.<your subdomain>.workers.dev/. Copy the step's signing secret (it starts with whsec_) into the relay:

npx wrangler secret put FORMINIT_SIGNING_SECRET --name ev-forminit-relay   # the step's signing secret

Select Test, then Publish. Forminit signs the test like a delivery; its docs do not show what the test holds, so a test with a sender email is checked like a submission (one credit for a billable check). Forminit signs every delivery with that secret and sends three headers: Forminit-Webhook-Id, Forminit-Webhook-Timestamp and Forminit-Webhook-Signature (v1=<hex>, signed over the id, the timestamp and the body). The relay checks all three before it reads anything and answers 401 to a delivery that is unsigned or whose timestamp is more than five minutes old (or ahead). Each step has its own secret, so one relay serves one step: for another form, deploy another relay under another name.

Forminit's payload carries no field types, so the relay checks the sender's email (the input fi-sender-email), or the fields you name in EMAIL_FIELDS below: sender.email and the names of email blocks (the input fi-email-invitee is invitee). At most 5 per submission, a repeated address once. It 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 as the sender's email 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, open Workers & Pages → Create and choose Create Worker. Name it ev-forminit-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 FORMINIT_SIGNING_SECRET as type Secret, and any of the settings below the same way, then Deploy.
  4. The relay's address is on the Worker's page. Add the webhook step in Forminit as described above.

Settings

SettingWhat it does
EV_API_KEYOur API key (required)
FORMINIT_SIGNING_SECRETThe Send webhook step's signing secret, whsec_… (required)
EV_REGIONeu to have addresses validated in the EU and their results stored there (default us)
EMAIL_FIELDSComma-separated fields to check, in that order: sender.email and email block names (default sender.email); each a name of letters, digits, _ or -, up to 64 characters, or the relay answers every delivery with an error
FORWARD_URLAn https address of yours that receives each submission's results as JSON
FORWARD_SECRETSigns the forward: header X-EV-Signature: sha256=<base64 HMAC-SHA256 of the body>
SLACK_WEBHOOK_URLA Slack incoming webhook
NOTIFY_ONall (default) or problems: report only the results whose action is not send
INCLUDE_EMAILtrue to put the address in the forward and the Slack message (default: ids and results only)
EVENTSA 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 Forminit

Forminit retries a delivery that gets no success answer, with exponential backoff, and a failed delivery can be retried from the submission's Workflow section. The relay answers within 8 seconds, and finishes a check it started even if Forminit stops waiting. 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 Forminit's retry 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 delivery of another event is answered with success and logged as ignored; a submission the relay cannot read is answered with an error, so it shows in Forminit's delivery log.

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

More on Forminit (formerly Getform)

Updated · Maintained by: Email Validation LLC

Need help? Contact support, or ask the help chat. Something wrong or missing on this page? Tell us