Email delivery and reputation
SMTP test API
Connect live to a domain’s mail servers on submission ports 587 and 465 to inspect the SMTP banner, STARTTLS upgrade, and TLS certificate. Runs directly from our test infrastructure with full plain-English and technical session output.
POST
api.middle.network/v1/tools/smtp2 units a callLive lookupNot open to API keys yet
This tool sends traffic at the target, so API keys get
403 for now. It works free on the SMTP test page.Request body
Send JSON: { "input": { … } } with these fields. Fields not listed are ignored.
domainstringrequiredA domain (its first MX host is tested) or a mail server’s host name.Up to 253 charactersportintegeroptionalOne port to test. Leave out for 25, 587 and 465.One of:25,465,587,2525
Response
The same result shape every tool uses. status is the worst finding, summary and each finding come in plain and tech, and data holds the raw SMTP test detail.
200The test ran. RateLimit headers show what’s left today.400The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).401No API key, or the key is not valid or was revoked.403The tool sends traffic at the target and isn’t open to API keys yet (activeTool), or the target’s owner has asked not to be tested (optedOut).429Too many checks: per minute, per day, or at the same target.
Request
curl -X POST https://api.middle.network/v1/tools/smtp \
-H "Authorization: Bearer $MN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"domain":"gmail.com"}}'const res = await fetch("https://api.middle.network/v1/tools/smtp", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.MN_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({"input":{"domain":"gmail.com"}}),
});
const result = await res.json();
console.log(result.status, result.summary.plain);import os, requests
res = requests.post("https://api.middle.network/v1/tools/smtp",
headers={"Authorization": f"Bearer {os.environ['MN_API_KEY']}"},
json={"input":{"domain":"gmail.com"}})
result = res.json()
print(result["status"], result["summary"]["plain"])200 response
{
"tool": "smtp",
"target": "gmail.com",
"status": "pass",
"summary": {
"tech": "…",
"plain": "…"
},
"findings": [
{
"level": "pass",
"tech": "…",
"plain": "…"
}
],
"data": {},
"ms": 420,
"at": "2026-01-01T00:00:00.000Z"
}Put your key in MN_API_KEY. No key yet? Here’s how to get one. More in this group: MX lookup, Blacklist check, Email header analyser, Bulk sender compliance.
Try it without code
The same test runs free in your browser, no key needed.