# Validate Emails in Tally Forms

URL: https://email-validation.org/docs/guides/tally/
Updated: 2026-11-26

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

Check the email addresses in your Tally form submissions. Two pieces, use either or both: a script you run on your own
computer checks a form's existing submissions (as one bulk list above 50 addresses), tells you what it will cost and
asks before it spends anything, and writes the results to a CSV file; a small relay you deploy to your own Cloudflare
account checks each new submission a few seconds after it arrives and reports the result to your own URL or to Slack.
Neither changes or deletes anything in Tally. Download them:
[email-validation-tally.zip](https://email-validation.org/downloads/tally/email-validation-tally.zip) holds `tally.mjs` (the script),
`relay.mjs` (the relay) and the MIT licence.

Tally stores a submission before anything here sees it, so this cannot refuse an address while someone fills in the
form (Tally's own Email question checks the format, and on Tally Business can ask the respondent to confirm the
address with an emailed code), and Tally's API has no way to write a status onto a submission. 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

- **Browser or computer.** The relay needs only a browser ([dashboard steps](#relay-dashboard)). The script needs a
  computer with Node 22.18 or later; it has no browser-only option. Nothing to install: it has no dependencies.
- An API key of ours from the [API keys page](https://email-validation.org/app/api-keys/) with **Validate addresses**, and **Bulk lists** (off by
  default: turn it on when you create the key) for more than 50 addresses. With **Read balance and usage** too, the
  script shows your balance before it asks. A [daily credit cap](https://email-validation.org/docs/authentication/#limits) on the key limits what
  a busy form can spend through the relay.
- A Tally API key for the script: Tally → Settings → **API keys**. It has the access of the Tally user who made it;
  the script only reads with it.
- For the relay: a Cloudflare account (the relay is a Worker you deploy from the Cloudflare dashboard, or with
  Cloudflare's `wrangler` command, `npx wrangler`) and a signing secret of at least 32 characters, for example from
  `openssl rand -hex 32` or your password manager's generator.

## Check a form's submissions

```bash
cd email-validation-tally                  # the unzipped folder
export TALLY_API_KEY=…  EV_API_KEY=…
node tally.mjs --list                      # your forms: id, status, submissions, name
node tally.mjs --form VwbNEw --dry-run     # how many addresses it would check; spends nothing
node tally.mjs --form VwbNEw               # shows the credits and asks, then checks
```

The form id is in the form's address in Tally (`tally.so/forms/VwbNEw/…`), and `--list` shows it. The script reads
the form's completed submissions (partial ones are left out), shows how many addresses it would check, the most
credits that can use and your balance, and checks only after you answer `y`. Each address uses one credit; `unknown`
results, malformed addresses and test addresses are free. Up to 50 addresses are checked one by one; more go into one
bulk list.

The results go to `tally-VwbNEw-results.csv` in the folder you run it from, one row per answer and no addresses, so
you can join it with Tally's own export on the submission id:

```text
submission_id,question_id,question_title,status,reason,action,checked_at
```

The status is `valid`, `invalid`, `catch_all`, `unknown` or `disposable` ([statuses](https://email-validation.org/docs/statuses/)). Act on the
action rather than the status: spam traps and known complainers are `valid` with the action `remove`.

Options: `--field` (one Email question by its id; repeat it for more), `--since` and `--until` (a date-time such as
`2026-11-01T00:00:00Z`), `--out` (another output file), `--region eu` (validated in the EU, with the same key:
50 or fewer addresses are checked one by one and only their results stored there; a larger run is uploaded and stored
there as a bulk list), `--yes` (do not ask; needed when it does not run in a terminal), `--new-job` and
`--wait-minutes` (how long it waits for a bulk list, 240 by default).

## Run it again

Run the same command again later and it checks only the submissions that are new: the output file is the record of
what is done. A bulk list's id is kept in `tally-VwbNEw-results.csv.state.json` beside it (never an address or a
key), so after any stop (no credits, a closed laptop, the bulk list still running when the script stopped waiting)
the same command resumes that bulk list and it is charged once. The state file is removed when the results are in
the output. A single check that got no answer at all is sent again by the next run, and may then be charged again.

Exit codes: `0` done (or you answered no), `1` a check failed or the run stopped early (run it again), `2` wrong
arguments, `75` the bulk list was still running when the script stopped waiting (run it again later).

## Check each new submission

The relay is a Cloudflare Worker in your own account. No terminal? [Deploy it from the Cloudflare
dashboard](#relay-dashboard) instead. Or deploy it from the unzipped folder:

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

Then add a webhook to the form in Tally (free on every Tally plan). Tally's steps start from a published form, so
publish the form first (a test form will do), then open its **Integrations** tab and select **Connect** next to
**Webhooks**. Enter the relay's address as the endpoint, for example
`https://ev-tally-relay.<your subdomain>.workers.dev/`, and turn on a **signing secret** with the same value as
`TALLY_SIGNING_SECRET`. The relay checks the `Tally-Signature` of every delivery and answers `401` to one without a
valid signature, so a webhook without a signing secret is refused every time.

For each new submission it checks the answers of the Email questions (at most 5 per submission, a repeated address
once, reported under its first question; an address in a hidden field or a text question is not checked) and reports the status, reason and action of each:

- always in the Worker's log, with ids and results only, never the address;
- to a URL of yours and to a Slack incoming webhook, if you set them below.

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 ("Verify email" and any email to the
respondent off): it receives no mail, and the bounce hurts your sender.

### Deploy the relay from the Cloudflare dashboard

No terminal and nothing to install: every step happens in your browser.

1. In the [Cloudflare dashboard](https://dash.cloudflare.com/), open **Workers & Pages → Create** and choose
   **Create Worker** (the "Hello World" starter). Name it `ev-tally-relay` and select **Deploy**.
2. Select **Edit code**, delete the starter code, paste the whole of `relay.mjs` from the box below (**Copy** takes
   all of it) and select **Deploy**.
3. In the Worker's **Settings → Variables and Secrets**, select **Add** for each value below, then **Deploy**:
   - type **Secret**: `EV_API_KEY` (our API key) and `TALLY_SIGNING_SECRET` (the signing secret). Add any of
     the [settings](#settings) below the same way.
4. The relay's address, such as `https://ev-tally-relay.<your-subdomain>.workers.dev/`, is on the Worker's page.
   Then publish the form and add the webhook in Tally as described above.

To bind `EVENTS` in the dashboard, create a KV namespace in the dashboard's KV section, then add it on the
Worker's **Bindings** page as a KV namespace binding named `EVENTS`.

For a random secret without a terminal, use your password manager's generator: 32 or more letters and
digits.

Open [relay.mjs as plain text](https://email-validation.org/downloads/tally/relay.mjs.txt), select all of it and copy it.

### Settings

Add each with `npx wrangler secret put NAME --name ev-tally-relay`, or the ones that are not secret as
`--var NAME:value` on the deploy command. In the dashboard, add each under the Worker's **Settings → Variables and
Secrets**.

| Setting | What it does |
|---|---|
| `EV_API_KEY` | Our API key (required) |
| `TALLY_SIGNING_SECRET` | The webhook's signing secret, at least 32 characters (required) |
| `EV_REGION` | `eu` to have addresses validated in the EU and their results stored there (default `us`) |
| `FORM_IDS` | Comma-separated form ids to accept; deliveries of other forms are ignored |
| `EMAIL_FIELDS` | Comma-separated question ids 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 delivery Tally sends again is usually not checked again by any relay instance (KV can take up to a minute to reach other locations) |

To bind `EVENTS`, create a namespace with `npx wrangler kv namespace create ev-tally-events` and deploy with this
`wrangler.jsonc` in the unzipped folder instead of the flags above:

```json
{
  "name": "ev-tally-relay",
  "main": "relay.mjs",
  "compatibility_date": "2026-10-01",
  "kv_namespaces": [{ "binding": "EVENTS", "id": "<the id wrangler printed>" }]
}
```

### How the relay answers Tally

Tally waits 10 seconds for an answer and delivers again later when it gets none, or anything other than a success.
The relay answers within 9 seconds. Once an address of a submission is checked, it answers with success, so Tally does
not deliver it again, and a copy of that delivery is not checked again (by every relay instance when `EVENTS` is
bound). If our API is busy, the relay asks Tally to deliver again later; a busy answer is never charged, but a check
that timed out may have been, and Tally's next delivery can then be charged once more. A key or credits problem is
answered with an error too, so a later delivery succeeds once you fix it. Tally's signature carries no time, so the
relay checks only deliveries of submissions made in the last 36 hours. If deliveries were missed, run the script with
`--since` to catch up.

Nothing here has been run against a real Tally account yet: it is built from Tally's public documentation and tested
against a stand-in built from it.

## More on Tally

- [Tally integration](https://email-validation.org/integrations/tally/)
