# Validate New Systeme.io Contacts: Setup Guide

URL: https://email-validation.org/docs/guides/systeme-io/
Updated: 2026-12-05

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

Check the email address of each new Systeme.io contact. One module with no dependencies, on your own server: a
receiver for Systeme.io's webhooks checks each new contact's address and writes the answer back to the contact, as a
tag of your choice on a contact whose address cannot receive mail and as the status and reason in contact fields. By
default only a definite `invalid` is flagged. If our API is slow or down, the contact stays as it is.

**It flags; it never blocks.** Systeme.io's opt-in forms, funnel pages and order forms run nothing of yours before the
contact or the sale is saved, and its webhooks are sent after the event: when the receiver hears of a contact, it
already exists, and Systeme.io's own opt-in mails may already be on their way. The tag can start a Systeme.io
automation rule (trigger "Tag added": remove the contact from a campaign, unsubscribe it, notify your team), so your
emails stop going to addresses that bounce. Where your own server creates contacts through Systeme.io's API, check the
address first ([below](#own-server)).

Download it: [email-validation-systeme-io.zip](https://email-validation.org/downloads/systeme-io/email-validation-systeme-io.zip) holds the module
as TypeScript (`email-validation-systeme-io.ts`) and as JavaScript (`email-validation-systeme-io.mjs`), and the MIT
licence.

## What you need

- An API key of ours from the [API keys page](https://email-validation.org/app/api-keys/) with **Validate addresses** (on by default). Keep it on
  your server, never in a page.
- A Systeme.io public API key: click your profile picture, then **Settings** → **MCP & API keys**, and under **Public
  API keys** click **Create** (Systeme.io allows up to three keys per account). Keep it on your server.
- A Systeme.io plan. Systeme.io's pricing lists API requests on every plan, the free one included (30 a minute, with
  one tag and one automation rule), and its webhooks article names no plan.
- A server reachable over HTTPS with `fetch` and Web Crypto (Node 22 or later, Bun, Deno, Cloudflare Workers, or a
  framework on them such as Next.js, Remix, Hono or Express). Copy `email-validation-systeme-io.ts` into a TypeScript
  project, or `email-validation-systeme-io.mjs` into a JavaScript one. Import the `.ts` file with its extension under
  Node 22.18 or later, Deno or Bun; under a bundler, leave the extension out.

Our key goes only to our API, the Systeme.io key only to `https://api.systeme.io`, redirects are never followed, and
nothing here logs an address, a secret or a key.

## Set it up

### 1. The contact fields and the tag

The receiver writes into three contact fields, so create them before you add the webhook: a write naming a field the
account does not have is refused, and then nothing is written. In Systeme.io, open **CRM** → **Contacts**, open any
contact and click **Add new custom field** three times, with the **Unique key** `ev_email_status`, `ev_email_reason`
and `ev_email_hash` (other keys work too: give them as `fields`). For the tag (optional, recommended), open **CRM** →
**Tags**, click **Create** and name it, e.g. `email-invalid`.

Or create all four with Systeme.io's public API; the last call answers the tag's `id`, which the receiver needs:

```bash
export SYSTEME_API_KEY=…
for slug in ev_email_status ev_email_reason ev_email_hash; do
  curl -sS -X POST https://api.systeme.io/api/contact_fields -H "X-API-Key: $SYSTEME_API_KEY" \
    -H 'Content-Type: application/json' -d "{\"fieldName\": \"$slug\", \"slug\": \"$slug\"}"
done
curl -sS -X POST https://api.systeme.io/api/tags -H "X-API-Key: $SYSTEME_API_KEY" \
  -H 'Content-Type: application/json' -d '{"name": "email-invalid"}'   # answers {"id": …, "name": "email-invalid"}
```

In Windows PowerShell (5.1 or 7):

```powershell
$env:SYSTEME_API_KEY = "…"
$headers = @{ 'X-API-Key' = $env:SYSTEME_API_KEY }
foreach ($slug in 'ev_email_status', 'ev_email_reason', 'ev_email_hash') {
  $body = @{ fieldName = $slug; slug = $slug } | ConvertTo-Json
  Invoke-RestMethod -Method Post -Uri 'https://api.systeme.io/api/contact_fields' -Headers $headers -ContentType 'application/json; charset=utf-8' -Body $body
}
Invoke-RestMethod -Method Post -Uri 'https://api.systeme.io/api/tags' -Headers $headers -ContentType 'application/json; charset=utf-8' -Body '{"name": "email-invalid"}'
```

A tag made in the dashboard has its id in Systeme.io's tag list (`GET https://api.systeme.io/api/tags`, with the same
`X-API-Key` header).

### 2. The receiver

For example a Next.js route handler:

```ts
// app/api/systeme/route.ts
import { after } from 'next/server';
import { createSystemeIoHook } from './email-validation-systeme-io'; // the .mjs file in JavaScript

export const POST = createSystemeIoHook({
  apiKey: process.env.EV_API_KEY,
  systeme: { apiKey: process.env.SYSTEME_API_KEY },
  webhookSecret: process.env.SYSTEME_WEBHOOK_SECRET,
  tagId: process.env.SYSTEME_TAG_ID, // the tag's id; leave it out to write only the fields
  waitUntil: after, // keeps the work after the answer running on a serverless host
  onResult: (r) => console.log(r.contactId, r.outcome, r.decision.status),
});
```

On Cloudflare Workers, pass the context: `fetch: (request, env, ctx) => hook(request, ctx)`, with `hook` made once by
`createSystemeIoHook`. With another framework, give `createSystemeIoWebhookHandler` the raw body (never re-serialized
JSON) and the headers.

### 3. The webhook

In Systeme.io, click your profile picture, then **Settings** → **Webhooks** → **Create**. Enter a name, your receiver's
URL (HTTPS) and a secret: a long random one from your password manager or `openssl rand -hex 32`, the same one as
`SYSTEME_WEBHOOK_SECRET`. Choose the events **Contact created** and **Opt-In**, keep it **Active**, and save. Other
events sent to the receiver are answered and ignored; add **New sale** and `events: ['CONTACT_CREATED',
'CONTACT_OPT_IN', 'SALE_NEW']` to check each new sale's customer contact too.

Systeme.io signs each delivery with that secret (the `X-Webhook-Signature` header). The receiver refuses a delivery
whose signature does not match (`401`) before it acts on anything, and answers every other one at once: Systeme.io
retries a delivery that gets no `2xx` up to 12 times over about five days, and turns a webhook off when fewer than 80%
of its deliveries in the last five days succeed.

## Try it free first

Check one of our free test addresses (on a domain that receives no mail) with the plain check, which never calls
Systeme.io:

```ts
import { createEmailCheck } from './email-validation-systeme-io.ts';

const check = createEmailCheck({ apiKey: process.env.EV_API_KEY });
const decision = await check('no_mailbox@sandbox.email-validation.org');
console.log(decision.flagged, decision.status, decision.reason, decision.error); // true 'invalid' 'no_mailbox' null
```

If `error` is not `null` (a wrong key, a key without Validate addresses, a timeout), fix that first: the receiver
would leave every contact unchecked.

Checks of our test addresses are free. Never add a test address, or any address you made up, as a Systeme.io contact
or through one of its forms: Systeme.io mails new contacts, and a mail to an address that cannot receive it bounces and
hurts your sending reputation.

## What it writes

For each new contact the receiver takes only the contact's id from the delivery and reads the contact fresh from
Systeme.io; it never takes an address from the delivery. It checks the address once, reads the contact again, and only
while the contact still holds that address does it write:

- with a tag id, the tag on a **flagged** contact. A tag the contact already had (added by you or an automation) is
  left alone and never removed; a tag the receiver added is removed only when a later answer for a new address of that
  contact is not flagged.
- then the status (`valid`, `invalid`, `catch_all`, `unknown` or `disposable`), the reason and an address hash in the
  three contact fields, and nothing else of the contact.

The hash (in `ev_email_hash`) is a SHA-256 of the contact's id and its address, never the address itself. It is how
the receiver knows a contact is already answered: an opt-in after "Contact created", a resend or a replay of the same
contact and address starts no new check.

## How it decides

- **What is flagged.** `invalid` by default; `flag: ['invalid', 'disposable']` (any of `invalid`, `disposable`,
  `catch_all`, `unknown`) flags more. A changed `flag` applies to the next address checked.
- **It fails open.** No key, a timeout (6 seconds per check by default, `timeoutMs`, at most 10 seconds in the
  receiver), a network error, a rate limit, an error answer, or Systeme.io refusing a read or a write leaves the
  contact as it is; its next event tries again.
- **An unknown never clears a verdict.** Our own timeout or failure writes nothing. An `unknown` for the address itself
  never overwrites a definite status for the same address, nor a status your team set by hand.
- **Credits.** Each check uses one credit (`unknown` results, malformed and sandbox addresses are free). One check per
  contact and address; a definite answer is remembered under the address's hash (in memory, up to 1,000, for 30 days
  by default: `rememberDays`), so two contacts with one address share one check, and `store` (a Workers KV namespace,
  or anything with `get` and `put`) shares answers between instances.
- **Systeme.io's quota.** A contact already answered costs one Systeme.io request, a new one three (four with the
  tag), and the quota is shared by all your Systeme.io keys. The receiver waits out a used-up quota or a `429` for up
  to 20 seconds; past that the contact is left as it is, unchecked. On the free plan's 30 requests a minute, a burst of
  new contacts can run past it.
- **EU.** `region: 'eu'` checks the address in the EU, at `https://api-eu.email-validation.org` (same key and credits).

## Before your own server creates a contact

If your own sign-up route creates contacts with Systeme.io's API (`POST https://api.systeme.io/api/contacts`), check
the address before you call it:

```ts
import { createEmailCheck } from './email-validation-systeme-io.ts';

const check = createEmailCheck({ apiKey: process.env.EV_API_KEY });

const decision = await check(email);
// decision.reason says why
if (decision.flagged) return { error: 'Please use an email address that can receive mail.' };
```

It never rejects and fails open: no key, a timeout, an error answer or an `unknown` answers `flagged: false`.

## Results

`onResult` is called once per contact worked on, never with the address, with `contactId`, `event`, `outcome`, `tag`
(`added`, `removed` or `null`) and `decision` (`status`, `reason`, `error`). `outcome` is `flagged` or `allowed`
(written), `already_checked` (the contact holds this address's hash), `no_address`, `address_changed` (the address
changed during the check: nothing written), `kept` (an `unknown` that did not overwrite a definite status) or
`unchecked`, with `decision.error` saying why: for example `missing_key`, `timeout`, `out_of_time`,
`insufficient_credits`, `contact_gone`, `systeme_key_refused` or `systeme_rate_limited`.

## More on Systeme.io

- [Systeme.io email validation integration](https://email-validation.org/integrations/systeme-io/)
