Forms

Basin email validation integration

A small relay you deploy to your own Cloudflare account receives each new submission from your Basin form’s signed webhook, checks its email field and reports the result by submission id: in its log, at a URL of yours or in Slack.

Read the full setup guideGet an API key

  • Setup guide
  • A relay you download

relay.mjsCloudflare Workers

Terminal
npx wrangler deploy relay.mjs --name ev-basin-relay --compatibility-date 2026-10-01
npx wrangler secret put EV_API_KEY --name ev-basin-relay
npx wrangler secret put BASIN_SIGNING_SECRET --name ev-basin-relay

At a glance.

Status
Setup guide. Not listed on a marketplace yet: you set it up yourself in a few steps, below and in the full guide.
For
Sites that send their contact, sign-up or waitlist forms to Basin and want to know which addresses will bounce before they follow up, without changing the form itself.
You need
A Basin plan with webhooks (Growth or above), an API key of ours with Validate addresses and a Cloudflare account to run the relay in.
Costs
1 credit = 1 validated address, as with any API request. Free: unknown results, API errors, malformed addresses, test addresses on sandbox.email-validation.org, addresses on reserved domains such as example.com and, in a bulk list, repeats of an address (charged once).
Full guide
Read the full setup guide

Typical uses.

  • Know before you follow up

    The relay checks each new submission a few seconds after Basin’s webhook delivers it, and reports the email field’s status, reason and action in its log, at a URL of yours or in Slack.

  • Hear only about problems

    Set NOTIFY_ON to problems, and your URL and Slack get only the results whose action is not send.

  • Keep addresses out of the reports

    By default the log, the forward and the Slack message carry the submission id and the result, not the address.

Set it up. 4 steps.

The short version of the full setup guide, which stays the reference when a step does not match what you see.

Read the full setup guide

  1. Download and unzip

    Download email-validation-basin.zip from the guide. It holds relay.mjs and the licence.

  2. Deploy the relay

    Deploy relay.mjs with npx wrangler deploy or from the Cloudflare dashboard, and add EV_API_KEY as a secret.

  3. Add the webhook

    In the form’s Integrations open Webhooks, create one with the relay’s address and the JSON payload format, then copy its signing secret into BASIN_SIGNING_SECRET.

  4. Test it

    With any email to the submitter turned off, submit the form once with no_mailbox@sandbox.email-validation.org: the Worker’s log shows invalid with the reason no_mailbox, at no cost.

Good to know.

  • Basin has stored a submission when its webhook fires, so the relay reports a bad address a few seconds later but cannot refuse or undo the submission.

  • The relay checks Basin’s signature over the exact bytes of each delivery and reads nothing of an unsigned one.

  • Basin sends no field types, so the relay checks the field named email, or the fields you name in EMAIL_FIELDS.

  • Act on the action rather than the status: spam traps and known complainers are valid with the action remove.

  • EV_REGION=eu validates in the EU, with the same key, and stores the results there.

  • It has not run against a real Basin account yet: it is built from Basin’s public documentation and tested against deliveries built from it. Try it on a test form first.

Connect Basin.

Test it on our sandbox addresses for free, then on your own contacts.

Create your accountRead the full setup guide

Updated · Maintained by: Email Validation LLC