# Check Kommo Contact Emails: Setup Guide

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

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

Check the email address of each new or edited Kommo contact, and of the main contact of each new or edited lead.
Kommo cannot hold or refuse a contact while it is saved, so the receiver flags instead: it writes the answer into four
text fields of the contact and adds the tag `invalid email` when the address is a status you flag (by default only
`invalid`). Your filters, lists, Salesbot and Digital Pipeline can then act on the tag or the fields. A small receiver
you host answers a Kommo **webhook**: it reads the contact through Kommo's API, checks its address with our API and
writes the answer back.

It is TypeScript with no dependencies, under the MIT licence. Download
[email-validation-kommo.zip](https://email-validation.org/downloads/kommo/email-validation-kommo.zip): it holds `email-validation-kommo.ts` (the
receiver), `worker.ts` (the same receiver as a Cloudflare Worker) and `LICENSE`. It is not in the Kommo Marketplace.

| Contact field (text) | Value |
|---|---|
| `ev_status` | `valid`, `invalid`, `catch_all`, `unknown` or `disposable` |
| `ev_reason` | Why, such as `accepted` or `no_mailbox` (empty when there is none) |
| `ev_checked_at` | When the check ran (ISO 8601, UTC) |
| `ev_address_hash` | A fingerprint (SHA-256) of the address checked, never the address |

## What you need

- A Kommo account and an administrator: only an administrator can create the private integration and the fields.
  Kommo's developer docs list webhooks on its Advanced, Pro and Enterprise plans; its 14-day free trial gives full
  access to all features.
- A place to run the receiver on a public HTTPS address: a Cloudflare account and Cloudflare's `wrangler` command
  (`npx wrangler`, on a computer with Node 22.18 or later), or your own server with Node 22 or later, Bun or Deno.
- An API key of ours from the [API keys page](https://email-validation.org/app/api-keys/) with the permission **Validate addresses**, and a
  [daily credit cap](https://email-validation.org/docs/authentication/#limits) that limits what a busy day can spend.

## Set it up

1. **A Kommo token.** As an administrator, open **Settings → Integrations** and click **Create integration** (a
   private integration; leave its redirect URL empty). On its **Keys and scopes** tab, click **Generate long-lived
   token**, choose how long it lasts and copy it: Kommo shows it only once. The token opens your account's data: keep
   it only in the receiver's secrets. Your subdomain is the first part of your account's address: `acme` for
   `acme.kommo.com`.
2. **Our four fields**, once. From the unzipped folder, on a computer with Node 22.18 or later, run:

   ```bash
   cd email-validation-kommo
   read -rs KOMMO_TOKEN && export KOMMO_TOKEN   # paste the token; nothing shows
   node --input-type=module -e "import { setupKommoFields } from './email-validation-kommo.ts';
   console.log(await setupKommoFields({ kommo: { subdomain: 'acme', token: process.env.KOMMO_TOKEN } }))"
   ```

   It creates `ev_status`, `ev_reason`, `ev_checked_at` and `ev_address_hash` as text fields of contacts where they
   are missing, and prints which it found and which it created. Without them the receiver checks nothing (an answer
   it could not write would be paid for again on the next event). An account on amoCRM's domains adds
   `domain: 'amocrm.ru'` (or `'amocrm.com'`) next to `subdomain`.
3. **A relay token.** Kommo lets you set only the webhook's URL and does not sign its requests, so the URL carries a
   token you make up, and the receiver refuses every request without it. Make one of at least 24 characters with
   `openssl rand -hex 24` (on Windows, your password manager's generator). Keep it to letters and digits: the URL's
   `?token=` is URL-decoded.
4. **Deploy the receiver** from the unzipped folder:

   ```bash
   npx wrangler deploy worker.ts --name ev-kommo --compatibility-date 2026-10-01
   npx wrangler secret put EV_API_KEY --name ev-kommo          # our API key
   npx wrangler secret put KOMMO_SUBDOMAIN --name ev-kommo     # acme, for acme.kommo.com
   npx wrangler secret put KOMMO_TOKEN --name ev-kommo         # the long-lived token
   npx wrangler secret put KOMMO_RELAY_TOKEN --name ev-kommo   # the relay token
   ```

   `wrangler deploy` prints the Worker's address, such as `https://ev-kommo.<your subdomain>.workers.dev`. On your own
   server, put `email-validation-kommo.ts` next to your code and create the receiver once, at module level, with our
   key and the Kommo token as two separate settings:

   ```ts
   export const POST = createKommoHook({
     apiKey: process.env.EV_API_KEY, // our API key
     kommo: { subdomain: process.env.KOMMO_SUBDOMAIN, token: process.env.KOMMO_TOKEN }, // never our key
     relayToken: process.env.KOMMO_RELAY_TOKEN,
   });
   ```

   That is a Next.js route handler: add `waitUntil: after` (`after` from `next/server`), so the work after the answer
   finishes. In Express, create `createKommoWebhookHandler(options)` with the same options and call it with the raw
   body, the headers and `url: req.originalUrl`. Node 22.18 or later imports the `.ts` file as it is; with an older
   Node or a build step, compile it with your app.
5. **The webhook.** In Kommo, open **Settings → Integrations** and click **Web hooks** in the upper right corner. Add
   the URL `https://<your receiver>/?token=<your relay token>` and choose the events **Contact added** and **Contact
   edited** (and **Lead added** and **Lead edited** to check each lead's main contact). Save it. Keep the URL private:
   it is the receiver's only lock.

## Settings

| Variable | Value |
|---|---|
| `EV_API_KEY` | Required. Our API key with **Validate addresses**. |
| `KOMMO_SUBDOMAIN` | Required. Your account's subdomain: `acme` for `https://acme.kommo.com`. |
| `KOMMO_TOKEN` | Required. The private integration's long-lived token. |
| `KOMMO_RELAY_TOKEN` | Required. The relay token, at least 24 characters, in the webhook URL as `?token=<token>`. |
| `KOMMO_DOMAIN` | `amocrm.ru` or `amocrm.com` for an account on those domains. Default `kommo.com`. |
| `EV_REGION` | `eu` to check addresses in the EU ([EU data residency](https://email-validation.org/docs/eu-data-residency/)), with the same key. |
| `EV_FLAG` | The statuses that tag a contact, separated by commas: `invalid`, `disposable`, `catch_all`, `unknown`. Default `invalid`. The fields always hold the status. |
| `KOMMO_TAG` | The tag added to a flagged contact, instead of `invalid email` (no commas). |

A missing Kommo token or relay token, or a wrong `KOMMO_SUBDOMAIN`, `KOMMO_DOMAIN`, relay token, `EV_REGION`, `EV_FLAG`
or `KOMMO_TAG`, fails every request (HTTP 500; the Worker's logs name the setting, never a key or a token), so set the
secrets before you add the webhook. A Kommo token that is set but wrong, or expired, or our fields missing, leave each
contact unchecked, and no check is paid for. A missing or wrong `EV_API_KEY` leaves every contact unchecked.

## What it does on a contact

- The receiver answers Kommo at once (Kommo waits 2 seconds) and works after the answer: it reads the contact fresh,
  takes its first work email address (else its first), checks it, reads the contact again and writes only while the
  contact still holds that address.
- A flagged status adds the tag `invalid email` (or your `KOMMO_TAG`). A definite answer that is not flagged (the
  address was corrected) removes that tag. No other tag or field is touched, and nothing is sent to the contact.
- Its own write comes back from Kommo as **Contact edited** and checks nothing, and so does an edit that keeps the
  address: the fields already hold the answer for it.
- The same address is not checked again while the receiver remembers it (24 hours, in memory as a fingerprint, never
  the address). Cloudflare runs and restarts Workers on its own, so an address can now and then be checked again.
- No answer, or an `unknown` for our own timeout or failure, writes nothing. Any other `unknown` never replaces a
  verdict for the same address and never removes the tag.

[What each status means](https://email-validation.org/docs/statuses/).

## When something fails

- Our API is slow, down, rate limited or out of credits, or our key is missing or wrong: the contact is left as it
  is. Every failure fails open. Our refused key, no credits or the key's daily cap pause checks for 5 minutes.
- Kommo allows 7 API requests a second, and repeated breaches can block the server's address. The receiver keeps its
  calls under that pace and waits out a rate limit, at most 25 seconds per delivery; a contact it could not finish in
  that time stays unchecked, and nothing is paid for it.
- Kommo turns a webhook off after more than 100 failed answers in 2 hours. The receiver answers every request with
  the right token at once, so that does not happen while it runs. Save the webhook again in Kommo to turn it back on.
- A request without the right token is answered 401, and nothing is read or checked.

## Try it free

Use a [test address](https://email-validation.org/docs/test-addresses/): it costs nothing and returns a fixed result. A test address receives no
mail, so never send the test contact a message or add it to a mailing.

1. In Kommo, create a contact with the email `no_mailbox@sandbox.email-validation.org`.
2. Within a few seconds the contact should have the tag `invalid email`, and `ev_status` should say `invalid` and
   `ev_reason` `no_mailbox`. We have not yet tried this on a real Kommo account.
3. If nothing comes, check the Worker's logs (`npx wrangler tail --name ev-kommo` while you create another test
   contact) for a setting it names, and that the four fields exist on contacts (step 2 of the setup prints them).
4. Delete the test contact.

## What it costs

Each check costs at most 1 credit, like any [validation request](https://email-validation.org/docs/api/validate/). `unknown` results, errors,
malformed addresses and test addresses are free, and an address the receiver remembers, or one a contact already holds
the answer for, is not checked again. Credits come in one-time [packs](https://email-validation.org/pricing/), from $0.15 per 1,000
with the 50,000,000-credit pack (smaller packs cost more per credit), and new accounts get
500 free credits (100 when you sign up with a free email provider such as Gmail, Outlook or Yahoo, another personal mailbox such as a paid one like Fastmail or one from your internet provider, or an address from a relay or alias service).

## Privacy

The receiver takes only ids from Kommo's request, never an address in it, and reads the contact from
`https://<your subdomain>.kommo.com`. It sends only the contact's address, in the body of a `POST` to https://api.email-validation.org (or
https://api-eu.email-validation.org), never in a URL, and nothing else from the contact. It writes back the status, the reason, the time and
the address's fingerprint, never the address. Our key goes only to our API and the Kommo token only to your account,
as a header; redirects are never followed, and nothing is logged with an address, a key or a token.

## End access

The receiver holds your Kommo token, which opens your account's data. To end its access:

1. Delete the webhook in Kommo: **Settings → Integrations**, **Web hooks**. No more contacts are sent.
2. Delete the Worker and its secrets. On the computer you deployed from, run:

   ```bash
   npx wrangler delete --name ev-kommo
   ```

   On your own server, remove the receiver and its settings.
3. Revoke the token: open the private integration under **Settings → Integrations** and click **Revoke access** on
   its **Authorization** tab, or delete the integration.
4. Revoke our key on the [API keys page](https://email-validation.org/app/api-keys/).

The four fields stay on your contacts; delete them in Kommo if you no longer want them.

## Related

- [Statuses and reasons](https://email-validation.org/docs/statuses/)
- [Test addresses](https://email-validation.org/docs/test-addresses/)

## More on Kommo

- [Kommo email validation integration](https://email-validation.org/integrations/kommo/)
