Email verification, as one JSON request.
Send an address. Get back whether it is deliverable, whether the domain has working mail, whether it is a disposable or role address, and a confidence score. One request, one result object.
Every endpoint lives under https://api.emailsherlock.com. Requests are JSON, responses are JSON, authentication is an API key in a header. The example on the right is a complete, copy-paste call. New here? The quickstart walks you from key to first call in five minutes.
Base URL
|
https://api.emailsherlock.comstringrequired
All paths are relative to this. The API lives on its own host, separate from the website.
|
curl https://api.emailsherlock.com/v1/credits \ -H "X-API-Key: $ES_KEY"
import { Emailsherlock } from '@emailsherlock/node';
const es = new Emailsherlock(process.env.ES_KEY);
const result = await es.credits();
from emailsherlock import Emailsherlock es = Emailsherlock(api_key=os.environ["ES_KEY"]) result = es.credits()
import emailsherlock "github.com/Emailsherlock1/go"
es := emailsherlock.New(os.Getenv("ES_KEY"))
result, err := es.Credits(ctx)
<?php
use Emailsherlock\Client;
$es = new Client(getenv('ES_KEY'));
$result = $es->credits();
{
"plan": "Free",
"sandbox": false
}
Authentication
Authenticate with your API key in the X-API-Key header.
Create a key from your API keys settings and send it on every request. Every key can call both verify endpoints out of the box. Keep the key server-side: a leaked key spends your credits.
|
X-API-Keyheaderrequired
Your secret API key. A missing or invalid key returns 401 unauthorized.
|
curl https://api.emailsherlock.com/v1/credits \ -H "X-API-Key: $ES_KEY"
import { Emailsherlock } from '@emailsherlock/node';
const es = new Emailsherlock(process.env.ES_KEY);
const result = await es.credits();
from emailsherlock import Emailsherlock es = Emailsherlock(api_key=os.environ["ES_KEY"]) result = es.credits()
import emailsherlock "github.com/Emailsherlock1/go"
es := emailsherlock.New(os.Getenv("ES_KEY"))
result, err := es.Credits(ctx)
<?php
use Emailsherlock\Client;
$es = new Client(getenv('ES_KEY'));
$result = $es->credits();
{
"error": {
"code": "unauthorized",
"message": "Invalid API key."
}
}
Sandbox testing
A key that starts with es_test_ runs in sandbox mode: deterministic, fixtured results on the same endpoints and the same response shape, with no credits spent.
Create a sandbox key from your API keys settings (live keys start with es_live_). Every sandbox response carries the X-Sandbox: true header. The local part of the address you send drives the result, so you can exercise each branch of your integration without real traffic:
|
valid@any domain
result: valid, deliverable, score around 0.95.
|
|
invalid@
result: invalid, not deliverable.
|
|
catch-all@or catchall@
result: catch_all: the domain accepts every address, so a single mailbox can't be confirmed.
|
|
disposable@
result: disposable: a throwaway-inbox provider.
|
|
role@
result: role: a shared mailbox like info@ or support@.
|
|
unknown@
result: unknown: a transient outcome (greylisting). Retry after a short wait.
|
|
pending@
result: unknown with reason: verification_pending: the deferred-SMTP outcome the batch endpoint returns. Verify the address again later for the cached verdict.
|
|
ratelimit@
HTTP 429 rate_limit_exceeded, so you can test your backoff path.
|
|
servererror@
HTTP 503 verify_unavailable, so you can test your retry path.
|
|
async@or slowjob@
On the verification jobs endpoint only: include this in the batch and the sandbox runs the real async lifecycle. The submit returns processing and the job completes after a few seconds, so you can build and test your poll loop. Without it, sandbox jobs complete immediately.
|
|
anything else
Maps to a stable result derived from the address, so the same input always returns the same verdict while a varied list still exercises every branch.
|
curl https://api.emailsherlock.com/v1/verify/single \
-H "X-API-Key: es_test_…" \
-H "Content-Type: application/json" \
-d '{"email": "[email protected]"}'
X-Sandbox: true
X-Credits-Remaining: 8420
{
"email": "[email protected]",
"result": "valid",
"deliverable": true,
"score": 0.95
}
The verify result
Both endpoints return the same result object, one per address. It carries the verdict and the signals behind it.
|
emailstring
The address you sent.
|
|
resultstring
The verdict for this address. One of valid invalid catch_all disposable role unknown.
|
|
deliverableboolean · nullable
Proven deliverability: true only after the mailbox accepted RCPT TO, false only when the address provably fails (bad syntax, no MX, hard reject). Null means unproven, not bad: disposable, role and catch_all short-circuit before the SMTP probe.
|
|
reasonstring · nullable
Why the pipeline decided. greylisted, smtp_timeout, smtp_unreachable, smtp_throttled, probe_suppressed, probe_budget_exhausted and verification_pending all leave the address unproven. smtp_throttled means our own per-MX rate limit refused the connection, so nothing was asked of the mail server and a retry a few minutes later usually gets an answer. probe_suppressed means we have undertaken not to open a connection to that target at all, so a retry returns the same thing until that changes; nothing was asked of the mail server, so the lookup is refunded. The one exception is a target on our curated trap registry (spam_trap_type = known_trap_domain), which is billed. Read spam_trap_type for that, not the decision object: a target our heuristic flagged (reputation_heuristic) comes back review + spam_trap just the same and is refunded. probe_budget_exhausted belongs to the anonymous web tool, which runs on a shared daily probe budget; an API key is never subject to it, so you will not see it here. Null on results cached before reasons existed. One of bad_syntax no_mx mailbox_accepts mailbox_not_found disposable_provider role_address catch_all_domain accept_all_provider greylisted smtp_timeout smtp_unreachable smtp_throttled probe_suppressed probe_budget_exhausted verification_pending blocked_domain spam_trap .
|
|
mxboolean
DNS found a mail route for the domain. This is a pure DNS answer, not a connection test: reachability of the host is never probed here. True also covers the RFC 5321 fallback where the domain publishes no MX at all and its A or AAAA record acts as the implicit mail exchanger, so true is not proof that MX records exist. On a cached_recent result stored before this flag was recorded per address, true may be inferred from the presence of a stored mail host rather than observed, so read it together with reason when reason is no_mx. False means no MX, A or AAAA record, or that the check stopped before the DNS lookup (bad syntax, or a degraded response), so false is not proof that the domain cannot receive mail.
|
|
mx_recordstring · nullable
The primary mail exchanger resolved during this check. On the A/AAAA fallback described under mx, this is the bare domain rather than a published MX host. Null when freshness is cached_recent, because the host list is not stored alongside the cached verdict, and null when nothing was resolved. A null here therefore does not contradict mx being true, and is not evidence that the domain has no mail route.
|
|
disposableboolean
Throwaway / temporary-mail provider.
|
|
roleboolean
Role address such as info@ or sales@.
|
|
catch_allboolean
Host accepts mail for any local part.
|
|
free_emailboolean · nullable
The domain is a freemail provider (gmail.com, web.de, ...). Null when the domain is not classified yet.
|
|
relayboolean
The address sits on a relay / forwarding / alias-masking service (SimpleLogin, Apple Hide My Email, Cloudflare Email Routing, ...). The address is deliverable and reaches a real person, it is just masked, so this never changes the verdict or decision. Use it to apply your own policy on masked senders.
|
|
relay_providerstring · nullable
Name of the relay provider when relay is true, null otherwise.
|
|
parkedboolean
The address is on a parked or for-sale domain. Informational only: it never changes the verdict, but a parked domain rarely runs a real mailbox.
|
|
spam_trapboolean
The mail host is a known or suspected spam trap. Informational only: it never changes the verdict, and it is never a hard block. But sending to a trap hurts your sender reputation, so the recommendation drops to review. See spam_trap_type for how it was identified.
|
|
spam_trap_typestring · nullable
How the trap was identified: known_trap_domain (the mail host is on our curated trap registry) or reputation_heuristic (it matched a conservative parked + spam-list heuristic). Null when spam_trap is false. One of known_trap_domain reputation_heuristic .
|
|
suggested_correctionstring · nullable
A corrected address when the domain looks like a typo of a high-volume domain (gmial.com -> [email protected]). Null when nothing looks mistyped. Advisory only: it never changes the verdict, so show it as a "did you mean" hint and let the sender decide.
|
|
smtp_diagnosisstring · nullable
Enhanced scan only: the granular mailbox state read from the SMTP reply (mailbox_full, mailbox_disabled, mailbox_not_found, greylist_deferred, policy_block, accepted). Null on Quick / Standard scans, which do not run the deep probe. Explains the verdict, never overrides it. One of accepted mailbox_full mailbox_disabled mailbox_not_found greylist_deferred policy_block .
|
|
scorenumber · nullable
0-1 confidence, higher is safer to send to.
|
|
freshnessstring
How recent the underlying data is. One of fresh cached_recent cached_stale_refreshed.
|
|
checked_atstring · nullable
When the underlying verification ran (ISO 8601). On cached results this is the original check, not the request time.
|
|
domainobject · nullable
Domain-level intelligence. Null when we hold no crawl data for the domain: either it has not been crawled yet, or it is itself a public suffix (co.uk, github.io, a dynamic-DNS root such as kozow.com), which we do not crawl as one domain because unrelated owners share it.
|
|
decisionobject
|
|
degradedboolean
Email-Guard only: true when your monthly remote-decision quota is used up and the Verify API declined to run a remote check. The SDK falls back to its local checks (syntax + the bundled disposable list) until the quota resets at the start of next month. false on every normal response. See docs/decisions/email-guard.md.
|
The domain object
Domain-level intelligence behind the address: host classification, a 0-10 reputation score, the mail-auth DNS records (SPF, DKIM, DMARC, MTA-STS, TLS-RPT, BIMI, DANE), blacklist count, DNSSEC and CAA. null when we have not crawled the domain yet; it fills in once our pipeline has seen it.
|
namestring
The domain behind the address.
|
|
typesarray · nullable
Host classification. A domain can carry more than one type.
|
|
scorenumber · nullable
0-10 domain reputation score, higher is better. Null when the domain has not been scored yet.
|
|
spfboolean · nullable
An SPF record exists.
|
|
dkimboolean · nullable
True when a DKIM key was found at one of the common selector names we probe. False means none was found at those names. Because DKIM selectors cannot be enumerated from DNS (the signer picks the name), false is not proof that the domain has no DKIM: a domain signing with a custom selector reads as false. Null when DKIM has not been checked yet.
|
|
dmarcboolean · nullable
A DMARC record exists.
|
|
dmarc_policystring · nullable
The published DMARC policy. One of none quarantine reject .
|
|
mta_stsboolean · nullable
An MTA-STS policy is published.
|
|
tls_rptboolean · nullable
A TLS-RPT record exists.
|
|
bimiboolean · nullable
A BIMI record exists.
|
|
daneboolean · nullable
DANE/TLSA records exist for the MX hosts.
|
|
blacklistsinteger · nullable
Number of public DNS blacklists currently listing this domain's mail infrastructure.
|
|
dnssecstring · nullable
DNSSEC chain status. One of secure insecure bogus .
|
|
caaboolean · nullable
A CAA record restricts which CAs may issue certificates.
|
|
blockedboolean
The domain is on our curated blocklist of malicious or impersonation domains (EM-1258). A hard signal: treat any address on it as unsafe and reject it.
|
|
blocked_labelstring · nullable
A short public-facing label explaining why the domain is blocked (e.g. "confirmed phishing"), when the admin set one. Null unless blocked and a label was recorded. Never carries internal notes.
|
{
"plan": "Free",
"sandbox": false
}
Read the credit balance and rate-limit status. Free: consumes no credits.
curl https://api.emailsherlock.com/v1/credits \ -H "X-API-Key: $ES_KEY"
import { Emailsherlock } from '@emailsherlock/node';
const es = new Emailsherlock(process.env.ES_KEY);
const result = await es.credits();
from emailsherlock import Emailsherlock es = Emailsherlock(api_key=os.environ["ES_KEY"]) result = es.credits()
import emailsherlock "github.com/Emailsherlock1/go"
es := emailsherlock.New(os.Getenv("ES_KEY"))
result, err := es.Credits(ctx)
<?php
use Emailsherlock\Client;
$es = new Client(getenv('ES_KEY'));
$result = $es->credits();
{
"plan": "Free",
"sandbox": false
}
List your Deliverability check addresses, each with its latest verdict. Free: consumes no credits.
curl https://api.emailsherlock.com/v1/deliverability/addresses \ -H "X-API-Key: $ES_KEY"
import { Emailsherlock } from '@emailsherlock/node';
const es = new Emailsherlock(process.env.ES_KEY);
const result = await es.deliverability.listAddresses();
from emailsherlock import Emailsherlock es = Emailsherlock(api_key=os.environ["ES_KEY"]) result = es.deliverability.list_addresses()
import emailsherlock "github.com/Emailsherlock1/go"
es := emailsherlock.New(os.Getenv("ES_KEY"))
result, err := es.Deliverability.ListAddresses(ctx)
<?php
use Emailsherlock\Client;
$es = new Client(getenv('ES_KEY'));
$result = $es->deliverability->listAddresses();
{
"addresses": []
}
The pre-send gate: the latest cached verdict for an address (no live probe). Free: consumes no credits.
Parameters
|
idintegerrequired
|
curl https://api.emailsherlock.com/v1/deliverability/addresses/{id}/latest \
-H "X-API-Key: $ES_KEY"
import { Emailsherlock } from '@emailsherlock/node';
const es = new Emailsherlock(process.env.ES_KEY);
const result = await es.deliverability.latest(42);
from emailsherlock import Emailsherlock es = Emailsherlock(api_key=os.environ["ES_KEY"]) result = es.deliverability.latest(42)
import emailsherlock "github.com/Emailsherlock1/go"
es := emailsherlock.New(os.Getenv("ES_KEY"))
result, err := es.Deliverability.Latest(ctx, 42)
<?php
use Emailsherlock\Client;
$es = new Client(getenv('ES_KEY'));
$result = $es->deliverability->latest(42);
{
"address_id": 45,
"has_result": true
}
The durable check log for one address, newest first. Free: consumes no credits.
Parameters
|
idintegerrequired
|
|
limitinteger
|
|
offsetinteger
|
curl https://api.emailsherlock.com/v1/deliverability/addresses/{id}/checks \
-H "X-API-Key: $ES_KEY"
import { Emailsherlock } from '@emailsherlock/node';
const es = new Emailsherlock(process.env.ES_KEY);
const result = await es.deliverability.listChecks(42);
from emailsherlock import Emailsherlock es = Emailsherlock(api_key=os.environ["ES_KEY"]) result = es.deliverability.list_checks(42)
import emailsherlock "github.com/Emailsherlock1/go"
es := emailsherlock.New(os.Getenv("ES_KEY"))
result, err := es.Deliverability.ListChecks(ctx, 42, nil)
<?php
use Emailsherlock\Client;
$es = new Client(getenv('ES_KEY'));
$result = $es->deliverability->listChecks(42);
{
"address_id": 45,
"limit": 50,
"offset": 0,
"count": 12,
"checks": []
}
One check with its full audit breakdown. Free: consumes no credits.
Parameters
|
idintegerrequired
|
curl https://api.emailsherlock.com/v1/deliverability/checks/{id} \
-H "X-API-Key: $ES_KEY"
import { Emailsherlock } from '@emailsherlock/node';
const es = new Emailsherlock(process.env.ES_KEY);
const result = await es.deliverability.getCheck(1024);
from emailsherlock import Emailsherlock es = Emailsherlock(api_key=os.environ["ES_KEY"]) result = es.deliverability.get_check(1024)
import emailsherlock "github.com/Emailsherlock1/go"
es := emailsherlock.New(os.Getenv("ES_KEY"))
result, err := es.Deliverability.GetCheck(ctx, 1024)
<?php
use Emailsherlock\Client;
$es = new Client(getenv('ES_KEY'));
$result = $es->deliverability->getCheck(1024);
[]
Wire (or replace) the check.completed webhook for an address. Returns the signing secret once.
Parameters
|
idintegerrequired
|
Body parameters
|
urlstring
The https endpoint to POST check.completed to. Must resolve to a public address.
|
curl -X PUT https://api.emailsherlock.com/v1/deliverability/addresses/{id}/webhook \
-H "X-API-Key: $ES_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://hooks.example.com/emailsherlock"}'
import { Emailsherlock } from '@emailsherlock/node';
const es = new Emailsherlock(process.env.ES_KEY);
const result = await es.deliverability.setWebhook(42, { url: 'https://hooks.example.com/emailsherlock' });
from emailsherlock import Emailsherlock es = Emailsherlock(api_key=os.environ["ES_KEY"]) result = es.deliverability.set_webhook(42, url="https://hooks.example.com/emailsherlock")
import emailsherlock "github.com/Emailsherlock1/go"
es := emailsherlock.New(os.Getenv("ES_KEY"))
result, err := es.Deliverability.SetWebhook(ctx, 42, "https://hooks.example.com/emailsherlock")
<?php
use Emailsherlock\Client;
$es = new Client(getenv('ES_KEY'));
$result = $es->deliverability->setWebhook(42, 'https://hooks.example.com/emailsherlock');
{
"address_id": 45
}
Remove the check.completed webhook for an address.
Parameters
|
idintegerrequired
|
curl -X DELETE https://api.emailsherlock.com/v1/deliverability/addresses/{id}/webhook \
-H "X-API-Key: $ES_KEY"
import { Emailsherlock } from '@emailsherlock/node';
const es = new Emailsherlock(process.env.ES_KEY);
const result = await es.deliverability.deleteWebhook(42);
from emailsherlock import Emailsherlock es = Emailsherlock(api_key=os.environ["ES_KEY"]) result = es.deliverability.delete_webhook(42)
import emailsherlock "github.com/Emailsherlock1/go"
es := emailsherlock.New(os.Getenv("ES_KEY"))
result, err := es.Deliverability.DeleteWebhook(ctx, 42)
<?php
use Emailsherlock\Client;
$es = new Client(getenv('ES_KEY'));
$result = $es->deliverability->deleteWebhook(42);
{
"address_id": 45
}
Start DMARC monitoring for a domain and get the DNS record to publish. Calling it again for the same domain makes no second watch and returns the same record while DNS is unchanged and a check is left for the hour. Free: consumes no credits.
Adds the domain to the domains your account watches, looks up its DMARC record and answers the one change to make in its DNS so the DMARC reports start arriving with us. The lookup uses one of your account's DNS checks for the hour, the same ones POST /v1/domains/{domain}/dmarc/check uses; with none left, the answer is status unknown and no record, and the domain is watched all the same. Once the record is live, the check call confirms it. We also re-check on our own for 30 days.
Parameters
|
domainstringrequired
|
curl -X POST https://api.emailsherlock.com/v1/domains/{domain}/dmarc \
-H "X-API-Key: $ES_KEY"
import { Emailsherlock } from '@emailsherlock/node';
const es = new Emailsherlock(process.env.ES_KEY);
const result = await es.dmarc.start('acme.com');
from emailsherlock import Emailsherlock
es = Emailsherlock(api_key=os.environ["ES_KEY"])
result = es.dmarc.start("acme.com")
import emailsherlock "github.com/Emailsherlock1/go"
es := emailsherlock.New(os.Getenv("ES_KEY"))
result, err := es.DMARC.Start(ctx, "acme.com")
<?php
use Emailsherlock\Client;
$es = new Client(getenv('ES_KEY'));
$result = $es->dmarc->start('acme.com');
{
"domain": "example.com",
"status": "not_found",
"confirmed": false
}
Look up a watched domain's DMARC record again now, and say whether it carries your report address. Free: consumes no credits.
Checks are limited per account and hour, and the button on the setup page draws on the same limit. Once the record is found, the domain is confirmed as yours and its reports unlock.
Parameters
|
domainstringrequired
|
curl -X POST https://api.emailsherlock.com/v1/domains/{domain}/dmarc/check \
-H "X-API-Key: $ES_KEY"
import { Emailsherlock } from '@emailsherlock/node';
const es = new Emailsherlock(process.env.ES_KEY);
const result = await es.dmarc.check('acme.com');
from emailsherlock import Emailsherlock
es = Emailsherlock(api_key=os.environ["ES_KEY"])
result = es.dmarc.check("acme.com")
import emailsherlock "github.com/Emailsherlock1/go"
es := emailsherlock.New(os.Getenv("ES_KEY"))
result, err := es.DMARC.Check(ctx, "acme.com")
<?php
use Emailsherlock\Client;
$es = new Client(getenv('ES_KEY'));
$result = $es->dmarc->check('acme.com');
{
"domain": "example.com",
"status": "not_found",
"confirmed": false
}
Totals of a domain's DMARC reports over 7 or 30 days. Free: consumes no credits.
Needs your account's report address in the domain's DMARC record. Watching a domain does not unlock its reports. A report we have stored can take up to 5 minutes to show here.
Parameters
|
domainstringrequired
|
|
rangestring
Days to cover. One of 7 30.
|
curl https://api.emailsherlock.com/v1/dmarc/{domain}/summary \
-H "X-API-Key: $ES_KEY"
import { Emailsherlock } from '@emailsherlock/node';
const es = new Emailsherlock(process.env.ES_KEY);
const result = await es.dmarc.summary('acme.com');
from emailsherlock import Emailsherlock
es = Emailsherlock(api_key=os.environ["ES_KEY"])
result = es.dmarc.summary("acme.com")
import emailsherlock "github.com/Emailsherlock1/go"
es := emailsherlock.New(os.Getenv("ES_KEY"))
result, err := es.DMARC.Summary(ctx, "acme.com", nil)
<?php
use Emailsherlock\Client;
$es = new Client(getenv('ES_KEY'));
$result = $es->dmarc->summary('acme.com');
{
"domain": "example.com",
"range_days": 30,
"message_count": 18240,
"aligned_messages": 17902,
"aligned_pct": 98.1,
"source_count": 29,
"known_source_count": 24,
"unknown_source_count": 5,
"new_source_count": 2,
"failing_source_count": 3,
"last_received_at": "2026-11-04T06:12:40+00:00"
}
A domain's DMARC aggregate reports, newest first. Without Monitor Premium the list reaches back 30 days. Free: consumes no credits.
Needs your account's report address in the domain's DMARC record. Watching a domain does not unlock its reports.
Parameters
|
domainstringrequired
|
|
fromstring
First day a report began on, as YYYY-MM-DD in UTC.
|
|
tostring
Last day a report began on, as YYYY-MM-DD in UTC.
|
|
reporterstring
Only reports from this organisation, spelled as the `reporter` field of a row.
|
|
limitinteger
|
|
offsetinteger
|
curl https://api.emailsherlock.com/v1/dmarc/{domain}/reports \
-H "X-API-Key: $ES_KEY"
import { Emailsherlock } from '@emailsherlock/node';
const es = new Emailsherlock(process.env.ES_KEY);
const result = await es.dmarc.reports('acme.com');
from emailsherlock import Emailsherlock
es = Emailsherlock(api_key=os.environ["ES_KEY"])
result = es.dmarc.reports("acme.com")
import emailsherlock "github.com/Emailsherlock1/go"
es := emailsherlock.New(os.Getenv("ES_KEY"))
result, err := es.DMARC.Reports(ctx, "acme.com", nil)
<?php
use Emailsherlock\Client;
$es = new Client(getenv('ES_KEY'));
$result = $es->dmarc->reports('acme.com');
{
"domain": "example.com",
"history_from": "2026-10-05T06:12:40+00:00",
"limit": 50,
"offset": 0,
"count": 12,
"next_offset": null,
"reports": []
}
The rows of the dashboard's senders table, in its order: each row ranks by the volume of its largest address. SPF and DKIM detail needs Monitor Premium. Free: consumes no credits.
Needs your account's report address in the domain's DMARC record. Watching a domain does not unlock its reports. A report we have stored can take up to 5 minutes to show here.
Parameters
|
domainstringrequired
|
|
rangestring
Days to cover. One of 7 30.
|
|
resultstring
fail: at least one message failed the check. pass: none did. Left out, every row returns. One of pass fail.
|
|
checkstring
The check `result` reads. spf and dkim need Monitor Premium on this domain. One of dmarc spf dkim.
|
|
limitinteger
|
|
offsetinteger
|
curl https://api.emailsherlock.com/v1/dmarc/{domain}/sources \
-H "X-API-Key: $ES_KEY"
import { Emailsherlock } from '@emailsherlock/node';
const es = new Emailsherlock(process.env.ES_KEY);
const result = await es.dmarc.sources('acme.com');
from emailsherlock import Emailsherlock
es = Emailsherlock(api_key=os.environ["ES_KEY"])
result = es.dmarc.sources("acme.com")
import emailsherlock "github.com/Emailsherlock1/go"
es := emailsherlock.New(os.Getenv("ES_KEY"))
result, err := es.DMARC.Sources(ctx, "acme.com", nil)
<?php
use Emailsherlock\Client;
$es = new Client(getenv('ES_KEY'));
$result = $es->dmarc->sources('acme.com');
{
"domain": "example.com",
"range_days": 30,
"limit": 50,
"offset": 0,
"count": 6,
"next_offset": null,
"sources": []
}
The TLS-RPT reports your account received for a domain, newest first. Free: consumes no credits.
Needs your account's report address in the domain's TLS-RPT record. Watching a domain does not unlock its reports.
Parameters
|
domainstringrequired
|
|
rangestring
Days to cover. One of 7 30.
|
|
limitinteger
|
|
offsetinteger
|
curl https://api.emailsherlock.com/v1/tls-rpt/{domain}/reports \
-H "X-API-Key: $ES_KEY"
import { Emailsherlock } from '@emailsherlock/node';
const es = new Emailsherlock(process.env.ES_KEY);
const result = await es.tlsRpt.reports('acme.com');
from emailsherlock import Emailsherlock
es = Emailsherlock(api_key=os.environ["ES_KEY"])
result = es.tls_rpt.reports("acme.com")
import emailsherlock "github.com/Emailsherlock1/go"
es := emailsherlock.New(os.Getenv("ES_KEY"))
result, err := es.TLSRPT.Reports(ctx, "acme.com", nil)
<?php
use Emailsherlock\Client;
$es = new Client(getenv('ES_KEY'));
$result = $es->tlsRpt->reports('acme.com');
{
"domain": "example.com",
"range_days": 30,
"limit": 50,
"offset": 0,
"count": 4,
"next_offset": null,
"reports": []
}
The timeline of a domain you watch: DNS, record and mail changes, newest first. Without Monitor Premium it reaches back 30 days. Free: consumes no credits.
Parameters
|
domainstringrequired
|
|
limitinteger
|
|
offsetinteger
|
curl https://api.emailsherlock.com/v1/domains/{domain}/changes \
-H "X-API-Key: $ES_KEY"
import { Emailsherlock } from '@emailsherlock/node';
const es = new Emailsherlock(process.env.ES_KEY);
const result = await es.domains.changes('acme.com');
from emailsherlock import Emailsherlock
es = Emailsherlock(api_key=os.environ["ES_KEY"])
result = es.domains.changes("acme.com")
import emailsherlock "github.com/Emailsherlock1/go"
es := emailsherlock.New(os.Getenv("ES_KEY"))
result, err := es.Domains.Changes(ctx, "acme.com", nil)
<?php
use Emailsherlock\Client;
$es = new Client(getenv('ES_KEY'));
$result = $es->domains->changes('acme.com');
{
"domain": "example.com",
"history_from": "2026-10-05T06:12:40+00:00",
"limit": 50,
"offset": 0,
"count": 9,
"next_offset": null,
"changes": []
}
What to change next on a domain you own: the dashboard's steps from monitoring to p=reject, the sources that still fail DMARC with the repair for each, and the Fix Guide's open findings. Free: consumes no credits.
Needs your account's report address in the domain's DMARC record. ready_for_next_policy is the dashboard's readiness verdict: true only while reports keep arriving, enough mail has been observed, and no source that authenticates for the domain falls short of DMARC over the last 30 days.
Parameters
|
domainstringrequired
|
curl https://api.emailsherlock.com/v1/domains/{domain}/next-steps \
-H "X-API-Key: $ES_KEY"
import { Emailsherlock } from '@emailsherlock/node';
const es = new Emailsherlock(process.env.ES_KEY);
const result = await es.domains.nextSteps('acme.com');
from emailsherlock import Emailsherlock
es = Emailsherlock(api_key=os.environ["ES_KEY"])
result = es.domains.next_steps("acme.com")
import emailsherlock "github.com/Emailsherlock1/go"
es := emailsherlock.New(os.Getenv("ES_KEY"))
result, err := es.Domains.NextSteps(ctx, "acme.com")
<?php
use Emailsherlock\Client;
$es = new Client(getenv('ES_KEY'));
$result = $es->domains->nextSteps('acme.com');
{
"domain": "example.com",
"unaligned_sources": [],
"findings": []
}
Record a batch of Email-Guard decision events (free).
Body parameters
|
eventsarrayrequired
Guard decision events to record. Non-empty, capped per the batch limit. Each item: {domain?, verdict, action, reasons[], degraded, source, integration?, lib_version?, spec_version?, property_key?}. The full email address is never sent, only the domain. property_key is the optional public site-key of a property (EM-998); when it matches one of your properties the event is attributed to it, otherwise the event still records at the account level.
|
curl https://api.emailsherlock.com/v1/guard/events \
-H "X-API-Key: $ES_KEY" \
-H "Content-Type: application/json" \
-d '{"events":[{"domain":"mailinator.com","verdict":"disposable","action":"deny","reasons":["disposable_provider"],"degraded":false,"source":"local","integration":"symfony-bundle","lib_version":"0.1.2","spec_version":"1.0.0","property_key":"egp_4f3c2a1b8d9e0f1a2b3c4d5e6f70819a"}]}'
import { Emailsherlock } from '@emailsherlock/node';
const es = new Emailsherlock(process.env.ES_KEY);
await es.guard.recordEvents([{ domain: 'mailinator.com', verdict: 'disposable', action: 'deny', reasons: ['disposable_provider'], degraded: false, source: 'local', integration: 'symfony-bundle', lib_version: '0.1.2', spec_version: '1.0.0', property_key: 'egp_4f3c2a1b8d9e0f1a2b3c4d5e6f70819a' }]);
from emailsherlock import Emailsherlock
es = Emailsherlock(api_key=os.environ["ES_KEY"])
es.guard.record_events(events=[{"domain": "mailinator.com", "verdict": "disposable", "action": "deny", "reasons": ["disposable_provider"], "degraded": False, "source": "local", "integration": "symfony-bundle", "lib_version": "0.1.2", "spec_version": "1.0.0", "property_key": "egp_4f3c2a1b8d9e0f1a2b3c4d5e6f70819a"}])
import emailsherlock "github.com/Emailsherlock1/go"
es := emailsherlock.New(os.Getenv("ES_KEY"))
err := es.Guard.RecordEvents(ctx, []map[string]any{map[string]any{"domain": "mailinator.com", "verdict": "disposable", "action": "deny", "reasons": []string{"disposable_provider"}, "degraded": false, "source": "local", "integration": "symfony-bundle", "lib_version": "0.1.2", "spec_version": "1.0.0", "property_key": "egp_4f3c2a1b8d9e0f1a2b3c4d5e6f70819a"}})
<?php
use Emailsherlock\Client;
$es = new Client(getenv('ES_KEY'));
$es->guard->recordEvents([['domain' => 'mailinator.com', 'verdict' => 'disposable', 'action' => 'deny', 'reasons' => ['disposable_provider'], 'degraded' => false, 'source' => 'local', 'integration' => 'symfony-bundle', 'lib_version' => '0.1.2', 'spec_version' => '1.0.0', 'property_key' => 'egp_4f3c2a1b8d9e0f1a2b3c4d5e6f70819a']]);
[]
Score whether a sender poses as one of your people or partners.
Send the sender header fields of one message plus the identities you protect. The answer says whether the sender claims to be one of them (display name, a name in the address, a lookalike domain, a forged From) and how suspicious the sending domain is. No subject or body is accepted. Domain facts (age, our blocklist, DNSBL listings) come from records we already hold, and a domain we never checked adds none of those reasons. A freemail sender (from our built-in list) and a Reply-To that leaves the sender domain still count for any domain. Nothing you send is stored.
Body parameters
|
fromstringrequired
The From address, the bare local@domain without display name or angle brackets, with at most 64 octets before the @, 254 in total, and a domain within the DNS limits (63 octets a label, 253 the name).
|
|
display_namestring · nullable
The From display name as the reader sees it, at most 20 words.
|
|
reply_tostring · nullable
The Reply-To address, when the message has one. A value that is not of the form local@domain, or over the same length limits as from, is ignored.
|
|
dmarcstring · nullable
The DMARC result your mail server recorded for the From domain, the word from the Authentication-Results header. Only fail counts: a pass does not lower the score, and any other word (pass, none, temperror, permerror, or a receiver-specific one such as Microsoft's bestguesspass) is read as no stated result.
|
|
protectedarrayrequired
The people and organisations a sender may pose as: executives, suppliers, partners. At most 50 per call. List the domains and addresses each one really sends from; without them, genuine mail from that identity scores like a forgery.
|
curl https://api.emailsherlock.com/v1/impersonation/analyze \
-H "X-API-Key: $ES_KEY" \
-H "Content-Type: application/json" \
-d '{"from":"[email protected]","display_name":"Thomas Berger","reply_to":"[email protected]","dmarc":"pass","protected":[{"name":"Thomas Berger","domains":["acme.de"]}]}'
import { Emailsherlock } from '@emailsherlock/node';
const es = new Emailsherlock(process.env.ES_KEY);
const result = await es.impersonation.analyze({ from: '[email protected]', display_name: 'Thomas Berger', reply_to: '[email protected]', dmarc: 'pass', protected: [{ name: 'Thomas Berger', domains: ['acme.de'] }] });
from emailsherlock import Emailsherlock es = Emailsherlock(api_key=os.environ["ES_KEY"]) result = es.impersonation.analyze(from_="[email protected]", display_name="Thomas Berger", reply_to="[email protected]", dmarc="pass", protected=[{"name": "Thomas Berger", "domains": ["acme.de"]}])
import emailsherlock "github.com/Emailsherlock1/go"
es := emailsherlock.New(os.Getenv("ES_KEY"))
req := emailsherlock.ImpersonationRequest{
From: "[email protected]",
Protected: []emailsherlock.ProtectedIdentity{
{Name: "Thomas Berger", Domains: []string{"acme.de"}},
},
}
req.SetDisplayName("Thomas Berger")
req.SetReplyTo("[email protected]")
req.SetDmarc("pass")
result, err := es.Impersonation.Analyze(ctx, req)
<?php
use Emailsherlock\Client;
$es = new Client(getenv('ES_KEY'));
$result = $es->impersonation->analyze(['from' => '[email protected]', 'display_name' => 'Thomas Berger', 'reply_to' => '[email protected]', 'dmarc' => 'pass', 'protected' => [['name' => 'Thomas Berger', 'domains' => ['acme.de']]]]);
{
"risk": "high",
"score": 60,
"identity": "Thomas Berger",
"reasons": [
{
"reason": "display_name",
"weight": 40,
"detail": "Thomas Berger"
},
{
"reason": "freemail_sender",
"weight": 20,
"detail": "gmail.com"
}
]
}
Verify one email address.
The core call. One address in, one result out.
POST a JSON body with the address. We lowercase and trim it, check syntax, resolve MX, and probe deliverability. Free and unlimited on any paid plan, subject to fair use. A free account past its monthly allowance pays one credit per call, and gets a 402 without a charge only when its credits run out. A deep verify that the engine can't complete is refunded automatically.
Body parameters
|
emailstringrequired
The address to verify.
|
|
modestring · nullable
Scan depth. quick: syntax + DNS/MX only, no SMTP probe (0 credits). standard: + SMTP RCPT probe, default (1 credit). enhanced: + catch-all detection via random RCPT probe (3 credits; known catch-all hosts are billed at the standard rate). Omitting mode is identical to standard. One of quick standard enhanced.
|
|
asyncboolean · nullable
Return immediately without waiting for the live SMTP probe. The address is checked at DNS/MX depth; when a mailbox probe is still needed the response carries reason "verification_pending" while the SMTP check runs in the background. To read the verdict, call this endpoint again for the same address after roughly 1 to 3 seconds: the follow-up is a cache hit with the resolved result. Keep polling until reason is no longer "verification_pending". Each call is billed (standard verify is free on a paid plan, so polling costs nothing there). Billing is otherwise unchanged: async only changes when the result is delivered, not what you pay, so enhanced mode still runs its catch-all probe in the background and is billed at the enhanced rate. For large async batches, prefer POST /v1/verify/jobs, which returns a job id you poll with GET /v1/verify/jobs/{id} and whose status polls are free. Ignored for quick mode (already DNS-only). Default false.
|
The response is a single result object. The X-Credits-Remaining header reports your balance after the call.
Branch on deliverable when you need a yes/no: it is true only after the mailbox accepted our probe and false only when the address provably fails. null means unproven, not bad: disposable, role and catch-all addresses skip the probe. reason tells you why the verdict fell. The transient reasons (greylisted, smtp_timeout, smtp_unreachable, smtp_throttled) are worth a retry after 15 minutes or more. The first three describe the mail server: it asked us to come back later, or it did not answer. smtp_throttled describes us: our own rate limit for that mail server refused the connection, so the address was never sent and the server said nothing about it.
probe_suppressed is the one a retry will not change. It means we have undertaken not to open a connection to that target at all, because its operator asked us to stop or because it is a known spam trap. The address was never sent, nothing about it is stored, and every lookup returns the same thing until the exclusion is lifted. How an operator requests one is on the probe policy page.
Nothing was asked of the mail server, so the lookup is not charged: the credit goes back, and on a single or batch call X-Credits-Remaining already reports the balance after the refund. A verify job refunds per row too, but later: the job answers 202 before its rows run, so that header cannot show them. Read them off the job, or from GET /v1/credits once it finishes. The one exception is a target on our curated trap registry (spam_trap_type comes back known_trap_domain): that answer carries a verdict, so the lookup is billed like any other. Read spam_trap_type for it, not decision: a trap our heuristic flagged (reputation_heuristic) comes back review with spam_trap just the same, and it is refunded.
Each result also includes a decision object with a recommendation (allow, deny, or review) and a reasons array explaining the signal that drove it. This is advice: policy authority stays with your application. deny covers addresses that are provably invalid or from disposable providers. review covers role addresses, catch-all domains, and transient unknowns where a retry or manual check makes sense. allow means the mailbox accepted the probe.
curl https://api.emailsherlock.com/v1/verify/single \
-H "X-API-Key: $ES_KEY" \
-H "Content-Type: application/json" \
-d '{"email":"[email protected]"}'
import { Emailsherlock } from '@emailsherlock/node';
const es = new Emailsherlock(process.env.ES_KEY);
const result = await es.verify.single({ email: '[email protected]' });
from emailsherlock import Emailsherlock es = Emailsherlock(api_key=os.environ["ES_KEY"]) result = es.verify.single(email="[email protected]")
import emailsherlock "github.com/Emailsherlock1/go"
es := emailsherlock.New(os.Getenv("ES_KEY"))
result, err := es.Verify.Single(ctx, "[email protected]")
<?php
use Emailsherlock\Client;
$es = new Client(getenv('ES_KEY'));
$result = $es->verify->single(['email' => '[email protected]']);
{
"email": "[email protected]",
"result": "valid",
"deliverable": true,
"reason": "mailbox_accepts",
"mx": true,
"mx_record": "mx1.acme-mail.com",
"disposable": false,
"role": false,
"catch_all": false,
"free_email": false,
"relay": false,
"relay_provider": "SimpleLogin",
"parked": false,
"spam_trap": false,
"spam_trap_type": null,
"suggested_correction": "[email protected]",
"smtp_diagnosis": "mailbox_full",
"score": 0.95,
"freshness": "fresh",
"checked_at": "2026-06-09T14:32:00+00:00",
"domain": {
"name": "acme.com",
"types": [
"company"
],
"score": 8.7,
"spf": true,
"dkim": true,
"dmarc": true,
"dmarc_policy": "quarantine",
"mta_sts": false,
"tls_rpt": false,
"bimi": false,
"dane": false,
"blacklists": 0,
"dnssec": "secure",
"caa": true,
"blocked": false,
"blocked_label": null
},
"decision": {
"recommendation": "allow",
"reasons": [
"mailbox_accepts"
]
},
"degraded": false
}
Verify up to a batch of email addresses in one call.
Up to 100 addresses in one call. Each is verified independently. Standard verify is free and unlimited on any paid plan, subject to fair use. On a free account what is left of your monthly allowance covers the first addresses of a batch, and the rest is paid from your credits, one per address. When your credits cannot cover the rest, the call gets a 402 and nothing is charged.
Send an emails array. You get back a results array in the same order. A bad address in the list does not fail the whole call: that entry carries an error instead of a result, and the rest still run. If your balance runs out mid-batch we stop and the remaining entries report insufficient_credits, so you can see exactly how far we got.
Batches stay fast by skipping the live SMTP probe in the request cycle. An address we cannot settle from cache, DNS and our lists comes back as unknown with reason set to verification_pending, and the full check runs in the background. Request the same address again a few minutes later and you get the settled verdict from cache. Single calls always run the full probe inline.
Body parameters
|
emailsarrayrequired
The addresses to verify. Non-empty, capped per the batch limit.
|
|
modestring · nullable
Scan depth applied to every address in this batch. quick: syntax + DNS/MX only (0 credits each). standard: + SMTP RCPT probe, default (1 credit each). enhanced: + catch-all detection (3 credits each; known catch-all hosts billed at standard rate). Omitting mode is identical to standard. One of quick standard enhanced.
|
Per-entry errors
|
invalid_emailentry error
The entry was not a valid address. It was skipped and not billed.
|
|
insufficient_creditsentry error
Your balance ran out at this entry. This and the rest were not verified.
|
|
verify_unavailableentry error
The engine could not complete this address. It was refunded; retry it later.
|
curl https://api.emailsherlock.com/v1/verify/batch \
-H "X-API-Key: $ES_KEY" \
-H "Content-Type: application/json" \
-d '{"emails":["[email protected]","[email protected]"]}'
import { Emailsherlock } from '@emailsherlock/node';
const es = new Emailsherlock(process.env.ES_KEY);
const result = await es.verify.batch({ emails: ['[email protected]', '[email protected]'] });
from emailsherlock import Emailsherlock es = Emailsherlock(api_key=os.environ["ES_KEY"]) result = es.verify.batch(emails=["[email protected]", "[email protected]"])
import emailsherlock "github.com/Emailsherlock1/go"
es := emailsherlock.New(os.Getenv("ES_KEY"))
result, err := es.Verify.Batch(ctx, []string{"[email protected]", "[email protected]"})
<?php
use Emailsherlock\Client;
$es = new Client(getenv('ES_KEY'));
$result = $es->verify->batch(['emails' => ['[email protected]', '[email protected]']]);
{
"results": [
{
"email": "[email protected]",
"result": "valid",
"deliverable": true,
"reason": "mailbox_accepts",
"mx": true,
"mx_record": "mx1.acme-mail.com",
"disposable": false,
"role": false,
"catch_all": false,
"free_email": false,
"relay": false,
"relay_provider": "SimpleLogin",
"parked": false,
"spam_trap": false,
"spam_trap_type": null,
"suggested_correction": "[email protected]",
"smtp_diagnosis": "mailbox_full",
"score": 0.95,
"freshness": "fresh",
"checked_at": "2026-06-09T14:32:00+00:00",
"domain": {
"name": "acme.com",
"types": [
"company"
],
"score": 8.7,
"spf": true,
"dkim": true,
"dmarc": true,
"dmarc_policy": "quarantine",
"mta_sts": false,
"tls_rpt": false,
"bimi": false,
"dane": false,
"blacklists": 0,
"dnssec": "secure",
"caa": true,
"blocked": false,
"blocked_label": null
},
"decision": {
"recommendation": "allow",
"reasons": [
"mailbox_accepts"
]
},
"degraded": false
},
{
"email": "nope@",
"error": "invalid_email"
}
]
}
Submit a list of addresses for asynchronous verification.
Every address runs the full pipeline including the SMTP probe, so the results carry definitive inbox verdicts. Poll GET /v1/verify/jobs/{id} until the status is completed. Credits are charged per address at submit; addresses that cannot be processed are refunded automatically.
Body parameters
|
emailsarrayrequired
The addresses to verify. Non-empty, capped at the job limit (10000).
|
curl https://api.emailsherlock.com/v1/verify/jobs \
-H "X-API-Key: $ES_KEY" \
-H "Content-Type: application/json" \
-d '{"emails":["[email protected]","[email protected]"]}'
import { Emailsherlock } from '@emailsherlock/node';
const es = new Emailsherlock(process.env.ES_KEY);
const result = await es.verify.submitJob({ emails: ['[email protected]', '[email protected]'] });
from emailsherlock import Emailsherlock es = Emailsherlock(api_key=os.environ["ES_KEY"]) result = es.verify.submit_job(emails=["[email protected]", "[email protected]"])
import emailsherlock "github.com/Emailsherlock1/go"
es := emailsherlock.New(os.Getenv("ES_KEY"))
result, err := es.Verify.SubmitJob(ctx, []string{"[email protected]", "[email protected]"})
<?php
use Emailsherlock\Client;
$es = new Client(getenv('ES_KEY'));
$result = $es->verify->submitJob(['emails' => ['[email protected]', '[email protected]']]);
[]
Read the status and results of a verification job.
results is present once the status is completed: one entry per submitted address, in submit order. Results are retained for 7 days after submit.
Parameters
|
idstringrequired
The job id from the submit response.
|
curl https://api.emailsherlock.com/v1/verify/jobs/{id} \
-H "X-API-Key: $ES_KEY"
import { Emailsherlock } from '@emailsherlock/node';
const es = new Emailsherlock(process.env.ES_KEY);
const result = await es.verify.getJob('0f8a3c1e-6b4d-4e2a-9c7f-2d1b3a4c5d6e');
from emailsherlock import Emailsherlock
es = Emailsherlock(api_key=os.environ["ES_KEY"])
result = es.verify.get_job("0f8a3c1e-6b4d-4e2a-9c7f-2d1b3a4c5d6e")
import emailsherlock "github.com/Emailsherlock1/go"
es := emailsherlock.New(os.Getenv("ES_KEY"))
result, err := es.Verify.GetJob(ctx, "0f8a3c1e-6b4d-4e2a-9c7f-2d1b3a4c5d6e")
<?php
use Emailsherlock\Client;
$es = new Client(getenv('ES_KEY'));
$result = $es->verify->getJob('0f8a3c1e-6b4d-4e2a-9c7f-2d1b3a4c5d6e');
{
"id": "0f8a3c1e-6b4d-4e2a-9c7f-2d1b3a4c5d6e",
"status": "processing",
"total": 250,
"created_at": "2026-06-10T14:32:00+00:00",
"expires_at": "2026-06-17T14:32:00+00:00",
"results": []
}
Credits & rate limits
On any paid plan, verify spends no credits and is unlimited subject to fair use. Without a subscription, single and batch verify are free up to a monthly allowance and cost one credit per address after that; a verify job costs one credit per address from the start. A separate per-key rate limit caps how fast you go either way.
On any paid plan, verify calls spend no credits and are unlimited subject to fair use: past a plan's fair-use threshold your calls are slowed, not blocked or charged. Without a subscription, a free account gets a monthly allowance of standard verifies, tracked by X-Validations-Remaining. A single call past the allowance costs one credit. A batch spends what is left of the allowance on its first addresses and pays for the rest from your balance, one credit per address. When your credits cannot cover that you get a 402 verify_allowance_exhausted and nothing is charged. A verify job on the free plan does not use the allowance: it costs one credit per address, and a job your credits cannot cover gets a 402 insufficient_credits. Deep verify always spends credits, and X-Probe-Credits-Remaining tracks what is left.
The per-minute limit scales with your plan, so a higher tier gets a higher ceiling. Every response carries X-RateLimit-Limit (your current ceiling), X-RateLimit-Remaining and X-RateLimit-Reset (a unix timestamp). Exceed the window and you get a 429 with a Retry-After header. Read it rather than a fixed sleep. Short bursts are fine; only a sustained rate above your tier is throttled.
HTTP/2 200
X-RateLimit-Limit: 120
X-RateLimit-Remaining: 119
X-RateLimit-Reset: 1751328600
X-Credits-Remaining: 8420
Errors
Conventional HTTP status codes, plus a typed error body you can switch on.
Top-level failures return { "error": { "code", "message" } }. The code is stable and safe to branch on; message is for humans. 2xx is success, 4xx means the request was wrong, and 5xx means we faltered, so retry with backoff.
Status codes
{
"error": {
"code": "insufficient_credits",
"message": "Not enough credits for this request."
}
}