# Check Email Addresses in Slack

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

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

Check an email address without leaving Slack: type `/email-check name@example.com` in any channel or direct message (Slack does not run slash commands inside a
thread) and see our
status (`valid`, `invalid`, `catch_all`, `unknown` or `disposable`), the reason and the suggested action, visible only
to you. Add `share` to post the answer in the channel. Download it:
[email-validation-slack.zip](https://email-validation.org/downloads/slack/email-validation-slack.zip) holds `worker.mjs` (the relay),
`manifest.json` (the Slack app) and the MIT licence.

You set it up in your own accounts: a workspace admin creates the Slack app from our manifest, and you deploy a small
relay (a Cloudflare Worker) that holds your Slack app's signing secret and your API key. There is no one-click
install, and nothing of it runs on our side: Slack talks to your relay, and your relay talks to our API with your key.

We built it from Slack's developer documentation and tested it against a model of Slack's requests; it has not been
run in a real Slack workspace yet.

## What you need

- An API key of ours from the [API keys page](https://email-validation.org/app/api-keys/) with **Validate addresses** (and **Read balance and
  usage** for `/email-check credits`; both are on by default). Give it a daily credit cap.
- A Cloudflare account to run the relay in, and Cloudflare's `wrangler` command (`npx wrangler`).
- Permission to create and install an app in your Slack workspace.

## Deploy the relay

Unzip the download and, in the folder `email-validation-slack`, create `wrangler.jsonc` beside `worker.mjs`:

```json
{
  "name": "ev-slack-relay",
  "main": "worker.mjs",
  "compatibility_date": "2026-10-01",
  "durable_objects": { "bindings": [{ "name": "GUARD", "class_name": "SlackGuard" }] },
  "migrations": [{ "tag": "v1", "new_sqlite_classes": ["SlackGuard"] }],
  "vars": { "MAX_ADDRESSES": "1" }
}
```

`GUARD` makes sure each command is checked once and lets you set a daily cap; keep it. Then:

```bash
cd email-validation-slack                                 # the unzipped folder
npx wrangler deploy                                       # prints https://ev-slack-relay.<your subdomain>.workers.dev
npx wrangler secret put EV_API_KEY --name ev-slack-relay  # our API key
```

## Create the Slack app

1. In `manifest.json`, replace `YOUR-SUBDOMAIN` in the command's `url` so it reads your relay's address followed by
   `/slack/command`.
2. At api.slack.com/apps: **Create New App** → **From a manifest** → your workspace → paste the manifest → **Create**.
3. Copy the **Signing Secret** (Basic Information → App Credentials) into the relay:
   `npx wrangler secret put SLACK_SIGNING_SECRET --name ev-slack-relay`.
4. **Install to Workspace** (your workspace may ask an admin to approve it). Leave public distribution off: the app
   is for your own workspace.

Try `/email-check no_mailbox@sandbox.email-validation.org`; [test addresses](https://email-validation.org/docs/test-addresses/) cost nothing. You
should see "Checking 1 address…" and then the address answered as `invalid`, reason `no_mailbox`, suggested action
`remove`.

The app asks Slack for one permission, `commands` (its slash command). It asks for no other scope and the relay
never stores a Slack token, so it cannot read your conversations.

## The commands

| You type | You get |
|---|---|
| `/email-check name@example.com` | "Checking 1 address…" at once, then the result, only for you |
| `/email-check share name@example.com` | the same, and the result is posted in the channel, naming who asked |
| `/email-check credits` | the account's credit balance, and the next credits to expire, only for you |
| `/email-check help`, or no text | the list of commands |

Text that is not an email address (one `@`, a domain with a dot) gets a short reason and checks nothing, so words
such as `@here` are never checked or shown back as a mention.

## Settings

Secrets with `npx wrangler secret put … --name ev-slack-relay`; the others as `vars` in `wrangler.jsonc`.

| Setting | Default | What it does |
|---|---|---|
| `SLACK_SIGNING_SECRET` | (required) | The Slack app's signing secret: every request must be signed with it |
| `EV_API_KEY` | (required) | Our API key |
| `EV_REGION` | `us` | `eu` to have addresses validated in the EU and their results stored there ([EU data residency](https://email-validation.org/docs/eu-data-residency/)), same key and credits |
| `COMMAND` | `/email-check` | The slash command's name, if you changed it in the manifest |
| `MAX_ADDRESSES` | `1` | Addresses one command may check, 1 to 5 |
| `ALLOW_SHARE` | `true` | `false` turns off `share` (answers are then only for the person who asked) |
| `ALLOWED_TEAMS` | (any) | Workspace ids whose commands are answered, separated by commas |
| `ALLOWED_CHANNELS` | (any) | Conversation ids where the command works, separated by commas |
| `ALLOWED_USERS` | (anyone) | Member ids who may use the command, separated by commas |
| `DAILY_CAP` | (none) | Addresses checked per workspace per UTC day at most; needs `GUARD` |
| `CHECK_TIMEOUT_S` | `10` | Seconds our API may spend on one check, 5 to 15 |

A wrong or missing setting gets the person a short "This app is not set up right" answer naming the setting, never
its value.

## What it costs

Each address checked is one check, and a definite result costs one credit of the account whose key the relay holds
(`unknown` results and test addresses are free; `credits` and `help` are free). Anyone who can run the command spends
those credits, so limit who may use it, where, and how many addresses a day the workspace may check
(`ALLOWED_USERS`, `ALLOWED_CHANNELS`, `DAILY_CAP`). One address per command by default, up to five if you allow it;
for a whole list, use a [bulk list](https://email-validation.org/docs/guides/no-code/#bulk) instead.

The relay never retries a check, and a command Slack delivers twice is checked once. A check that got no answer in
time may still have run and used a credit: the answer says so instead of guessing.

## Security and privacy

The relay answers only requests signed by Slack: the signature over the request under your signing secret, and a
timestamp within five minutes of now. Anything else gets an empty `401` and checks nothing. Your API key is sent only
to our API, never anywhere else, and the relay posts answers only to Slack's own reply address for the command.

The relay stores no address: its guard keeps hashed command ids for ten minutes and a count for the current day, and
its one log line per command holds codes and counts only. The address you type goes through Slack to your relay and
to our API. An answer you `share` is a normal channel message with the address in it; turn sharing off with
`ALLOW_SHARE=false`.

## When our API cannot answer

You get a short answer saying what happened: the key was refused, the credits ran out, too many checks at once (with
when to try again), the key's daily cap, or our service being unavailable. Nothing is retried for you, and an answer
with an error is never posted in the channel.

## More on Slack

- [Slack integration](https://email-validation.org/integrations/slack/)
