Integrations · Forms

Validate emails of BigMarker registrants

Check the address of the people who register for your BigMarker webinars. One module with no dependencies, on your own server, in two pieces: your own registration form checks the address first and registers the person with BigMarker only when it is not one you stop, and a receiver for BigMarker's registration webhook checks the people who register on BigMarker's own page and tells you about a bad address.

Download it: email-validation-bigmarker.zip holds email-validation-bigmarker.mjs (one JavaScript module) and the MIT licence.

What you need

  • An API key of ours from the API keys page with Validate addresses (on by default). Keep it on your server, never in a page.
  • A BigMarker plan with API access and webhooks. BigMarker's pricing page lists API access on its Enterprise plans, and its webhooks article says the outgoing webhooks are on Enterprise and Event Package plans. BigMarker's sales team sets up trials.
  • For your own form: your BigMarker API key, from API settings in your BigMarker profile (Request API Key). Requesting a new one deletes the old one.
  • A server with fetch (Node 22 or later, Bun, Deno, Cloudflare Workers). Copy email-validation-bigmarker.mjs next to your code.

Your own registration form

If your site registers people for a webinar, check the address first. register checks it and, unless it is one you stop, registers the person with BigMarker's Register a User to a Conference call. An address that could not be checked (a timeout, no credits, any error) is registered: the check fails open. Make it once per process, not per registration: it remembers answers.

import { createBigMarkerRegistration } from './email-validation-bigmarker.mjs';

const bm = createBigMarkerRegistration({
  apiKey: process.env.EV_API_KEY,
  bigmarkerApiKey: process.env.BIGMARKER_API_KEY,
});

const out = await bm.register({
  conferenceId: 'your-webinar-id',
  email: form.email,
  firstName: form.firstName,
  lastName: form.lastName,
});

if (out.registered) {
  // out.conferenceUrl: the webinar's page on BigMarker
} else if (out.reason === 'blocked') {
  // ask for the address again; out.check.did_you_mean holds our suggestion when there is one
} else {
  // 'missing_field' (out.field) or 'bigmarker_error' (out.status, out.error): show your usual error
}

On a bigmarker_error, out.status is BigMarker's HTTP status (0 without an answer); out.error holds its error type only when BigMarker sends one as a short code, and is often empty.

If your BigMarker API settings show the Base URL https://web.bigmarker.com/api/v1, add bigmarkerBaseUrl: 'https://web.bigmarker.com/api/v1' (the default is https://www.bigmarker.com/api/v1; these two are the only ones it takes, so your BigMarker key never goes anywhere else).

customFields (keys are BigMarker custom field ids), customUserId and utmSource are passed on as BigMarker's custom_fields, custom_user_id and utm_bmcr_source. bm.check(email) runs only the check, if your own code calls BigMarker.

Registrations on BigMarker's page

BigMarker's own registration page runs no code of yours, so nothing can stop a registration there. BigMarker's outgoing webhook New webinar registration sends each new registrant to your server once BigMarker has taken the registration; the receiver checks the address and hands you the result. It only reports: nothing in BigMarker changes, and you act on it yourself (BigMarker's dashboard, your email tool, your CRM).

BigMarker does not sign its webhooks, so your webhook address carries a secret token of your own: at least 24 letters and digits from your password manager, kept in your server's settings.

import { createBigMarkerHook } from './email-validation-bigmarker.mjs';

const hook = createBigMarkerHook({
  apiKey: process.env.EV_API_KEY,
  token: process.env.BIGMARKER_HOOK_TOKEN,
  onResult: async (r) => {
    if (r.blocked) await notifyTeam(`${r.email} (${r.check.reason}) registered for ${r.conferenceId}`);
  },
});

// For example a Next.js route at app/api/bigmarker/route.js:
export async function POST(request) {
  return hook.handle(request);
}

On Cloudflare Workers pass the context too, hook.handle(request, ctx): it then answers BigMarker at once and checks after the answer.

Then, in BigMarker, open the webinar's Integrations page, search for Webhooks, turn on the outgoing webhook for new registrations and enter your address with the token, for example https://your-site.example/api/bigmarker?token=<your token>. The webhook is set per webinar.

onResult gets conferenceId, bmid, email, firstName, lastName, source, blocked and check (the result: status, reason, action, did_you_mean and, when it got no answer, error) for each registration, blocked or not. A request with a wrong token is refused before it is read; other webhooks sent to the same address (webinar start, attendees, …) are answered and ignored.

Try it free first

Check one of our free test addresses (on a domain that receives no mail) with check, which never calls BigMarker:

const result = await bm.check('no_mailbox@sandbox.email-validation.org');
console.log(result.status, result.blocked, result.error); // 'invalid' true null

If error is not null (a wrong key, a key without Validate addresses, a timeout), fix that first: register would let an unchecked address through.

Checks of our test addresses are free. Never register a test address or an address you made up on BigMarker's page: BigMarker would email it, and the email would bounce.

How it decides

  • What is blocked. invalid by default. block: ['invalid', 'disposable'] also blocks disposable addresses, and catch_all can be added too. valid and unknown are never blocked: act on the action of a valid result if you want to (spam traps and known complainers are valid with the action remove).
  • It fails open. A timeout (6 seconds per check by default, timeoutMs), a network error, a rate limit, no credits or any error answer leaves the address unchecked (error says why) and never blocks it: register then registers the person. Nothing is retried; after a rate limit the module sends nothing until our API's Retry-After has passed. A missing key or token throws when you make it, so a setup mistake does not pass every registration unchecked.
  • Answers are remembered. A verdict is kept for the process's life (10,000 addresses by default, memoMaxEntries), so the same person registering again costs nothing; an unknown or a failed check is asked again.
  • Credits. Each check uses one credit (unknown results, malformed and sandbox addresses are free). region: 'eu' checks in the EU, at https://api-eu.email-validation.org.
  • Our key goes only to our API and your BigMarker key only to BigMarker's API. Redirects are never followed, and the module logs nothing.

Test it first

The module uses the field names of BigMarker's API reference and webhooks article and has not run against a real BigMarker account. A webhook body in another shape is answered and ignored, and its registrant is then not checked. Run it with the test address above before you rely on it, and register once on BigMarker's page with your own real address to see onResult run: a wrong token or another body shape is otherwise silent.

More on BigMarker

Updated · Maintained by: Email Validation LLC

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