curl "https://server.smartlead.ai/api/v1/mcp-diagnostics/mailbox-domain-deliverability/example.com?api_key=YOUR_KEY"
import requests
d = requests.get(
"https://server.smartlead.ai/api/v1/mcp-diagnostics/mailbox-domain-deliverability/example.com",
params={"api_key": "YOUR_API_KEY"},
).json()["data"]
print(d["diagnostics"]["recommendation"])
{
"success": true,
"data": {
"domain": "example.com",
"dnsRecords": {
"mx": { "exists": true, "records": [{ "priority": 1, "exchange": "aspmx.l.google.com" }] },
"spf": { "exists": true, "record": "v=spf1 include:_spf.google.com ~all" },
"dkim": { "exists": true, "checked": "google._domainkey.example.com" },
"dmarc": { "exists": false, "record": null }
},
"blacklistStatus": { "isBlacklisted": false, "count": 0, "details": null },
"reputation": {
"last30Days": { "sent": 1200, "bounced": 18, "replied": 40, "opened": 300, "bounceRate": "1.50", "replyRate": "3.33" }
},
"diagnostics": {
"hasValidMX": true,
"hasSpf": true,
"hasDkim": true,
"hasDmarc": false,
"isBlacklisted": false,
"hasHighBounceRate": false,
"recommendation": ["No DMARC record found. Add DMARC policy for enhanced security."]
}
}
}
{
"success": false,
"message": "Domain not found in email accounts"
}
{
"statusCode": 400,
"error": "Bad Request",
"message": "Please provide a valid domain name",
"validation": { "source": "params", "keys": ["domain"] }
}
{
"success": false,
"message": "Internal server error"
}
Email Account Management
Check Mailbox Domain Deliverability
Live DNS check (MX, SPF, DKIM, DMARC), blacklist check and recent bounce and reply rates for one of your sending domains
GET
/
api
/
v1
/
mcp-diagnostics
/
mailbox-domain-deliverability
/
{domain}
curl "https://server.smartlead.ai/api/v1/mcp-diagnostics/mailbox-domain-deliverability/example.com?api_key=YOUR_KEY"
import requests
d = requests.get(
"https://server.smartlead.ai/api/v1/mcp-diagnostics/mailbox-domain-deliverability/example.com",
params={"api_key": "YOUR_API_KEY"},
).json()["data"]
print(d["diagnostics"]["recommendation"])
{
"success": true,
"data": {
"domain": "example.com",
"dnsRecords": {
"mx": { "exists": true, "records": [{ "priority": 1, "exchange": "aspmx.l.google.com" }] },
"spf": { "exists": true, "record": "v=spf1 include:_spf.google.com ~all" },
"dkim": { "exists": true, "checked": "google._domainkey.example.com" },
"dmarc": { "exists": false, "record": null }
},
"blacklistStatus": { "isBlacklisted": false, "count": 0, "details": null },
"reputation": {
"last30Days": { "sent": 1200, "bounced": 18, "replied": 40, "opened": 300, "bounceRate": "1.50", "replyRate": "3.33" }
},
"diagnostics": {
"hasValidMX": true,
"hasSpf": true,
"hasDkim": true,
"hasDmarc": false,
"isBlacklisted": false,
"hasHighBounceRate": false,
"recommendation": ["No DMARC record found. Add DMARC policy for enhanced security."]
}
}
}
{
"success": false,
"message": "Domain not found in email accounts"
}
{
"statusCode": 400,
"error": "Bad Request",
"message": "Please provide a valid domain name",
"validation": { "source": "params", "keys": ["domain"] }
}
{
"success": false,
"message": "Internal server error"
}
Looks up the domain’s DNS records live, checks it against blacklists, and adds the bounce and reply rates of your mailboxes on that domain. One domain per call. It reads only; nothing is changed.
At least one of your email accounts must contain the domain text, otherwise you get 400
Domain not found in email accounts. The check is a text match, so pass the exact sending domain: a near match (for example example.co when you own example.com) is accepted and then reports 0 sends.
Path Parameters
Query Parameters
curl "https://server.smartlead.ai/api/v1/mcp-diagnostics/mailbox-domain-deliverability/example.com?api_key=YOUR_KEY"
import requests
d = requests.get(
"https://server.smartlead.ai/api/v1/mcp-diagnostics/mailbox-domain-deliverability/example.com",
params={"api_key": "YOUR_API_KEY"},
).json()["data"]
print(d["diagnostics"]["recommendation"])
{
"success": true,
"data": {
"domain": "example.com",
"dnsRecords": {
"mx": { "exists": true, "records": [{ "priority": 1, "exchange": "aspmx.l.google.com" }] },
"spf": { "exists": true, "record": "v=spf1 include:_spf.google.com ~all" },
"dkim": { "exists": true, "checked": "google._domainkey.example.com" },
"dmarc": { "exists": false, "record": null }
},
"blacklistStatus": { "isBlacklisted": false, "count": 0, "details": null },
"reputation": {
"last30Days": { "sent": 1200, "bounced": 18, "replied": 40, "opened": 300, "bounceRate": "1.50", "replyRate": "3.33" }
},
"diagnostics": {
"hasValidMX": true,
"hasSpf": true,
"hasDkim": true,
"hasDmarc": false,
"isBlacklisted": false,
"hasHighBounceRate": false,
"recommendation": ["No DMARC record found. Add DMARC policy for enhanced security."]
}
}
}
{
"success": false,
"message": "Domain not found in email accounts"
}
{
"statusCode": 400,
"error": "Bad Request",
"message": "Please provide a valid domain name",
"validation": { "source": "params", "keys": ["domain"] }
}
{
"success": false,
"message": "Internal server error"
}
Response Fields
exists is true when a DKIM record was found under your custom selector (if set on the mailbox) or a common provider selector. checked is the record name that matched.isBlacklisted, count (lists the domain or its IP is on) and details per list. When the blacklist check fails or times out (10 seconds), you get isBlacklisted: false with an error field, so read error before trusting false.Emails sent from your mailboxes on this domain and their bounces, replies and opens. Despite the name, this covers the last 14 days. Rates are percentages as strings with 2 decimals (
0 when nothing was sent).