# checkEmailDomain

**Identifier:** `domain_checkEmailDomain`

**Provider:** [Domain](https://kirha.com/providers/domain.md)

Check whether a domain can receive email and how it authenticates it: MX servers and mail provider, SPF policy and DMARC policy. Accepts a domain or an email address. Use it to verify that an address's domain is real and deliverable, or to audit a domain's anti-spoofing setup.

## Run it with the CLI

```bash
kirha tools run domain_checkEmailDomain \
  --input '{
    "domain": "kirha.com or jane@kirha.com"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "domain_checkEmailDomain",
  "input": {
    "domain": "kirha.com or jane@kirha.com"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "domain": {
      "description": "Domain or email address, e.g., kirha.com or jane@kirha.com",
      "maxLength": 253,
      "minLength": 3,
      "type": "string"
    }
  },
  "required": [
    "domain"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "canReceiveEmail": {
      "type": "boolean"
    },
    "context": {
      "type": "string"
    },
    "dmarcPolicy": {
      "type": "string"
    },
    "dmarcRecord": {
      "type": "string"
    },
    "domain": {
      "type": "string"
    },
    "domainExists": {
      "type": "boolean"
    },
    "mailProvider": {
      "type": "string"
    },
    "mxHosts": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "host": {
            "type": "string"
          },
          "priority": {
            "type": "number"
          }
        },
        "required": [
          "priority",
          "host"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "nullMx": {
      "type": "boolean"
    },
    "spfPolicy": {
      "type": "string"
    },
    "spfRecord": {
      "type": "string"
    },
    "spoofingProtection": {
      "type": "string"
    }
  },
  "required": [
    "context",
    "domain",
    "domainExists",
    "mxHosts",
    "nullMx",
    "canReceiveEmail",
    "spoofingProtection"
  ],
  "type": "object"
}
```

-----

[All Domain tools](https://kirha.com/providers/domain.md) · [< Back to tools list](https://kirha.com/tools.md)