> ## Documentation Index
> Fetch the complete documentation index at: https://api.smartlead.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 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

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

**domain** `string` *required*

Sending domain, for example `example.com` (not an email address)

## Query Parameters

**api\_key** `string` *required*

Your SmartLead API key

```bash cURL theme={null}
curl "https://server.smartlead.ai/api/v1/mcp-diagnostics/mailbox-domain-deliverability/example.com?api_key=YOUR_KEY"
```

```python Python theme={null}
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"])
```

```json 200 theme={null}
{
  "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."]
    }
  }
}
```

```json 400 - Not one of your domains theme={null}
{
  "success": false,
  "message": "Domain not found in email accounts"
}
```

```json 400 - Not a domain theme={null}
{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "Please provide a valid domain name",
  "validation": { "source": "params", "keys": ["domain"] }
}
```

```json 500 theme={null}
{
  "success": false,
  "message": "Internal server error"
}
```

## Response Fields

**data.dnsRecords.dkim** `object`

`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.

**data.blacklistStatus** `object`

`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`.

**data.reputation.last30Days** `object`

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).

**data.diagnostics.recommendation** `array`

Plain-English fixes, for example adding SPF, DKIM or DMARC, or requesting blacklist removal

## Related Endpoints

* [Get Campaign Diagnostics](https://api.smartlead.ai/api-reference/campaigns/diagnostics.md)
* [List Email Accounts](https://api.smartlead.ai/api-reference/email-accounts/get-all.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.