# Nightshift Labs Domain Email Security Check

> Nightshift Labs Domain Email Security Check is a paid API for AI agents from nightshift-x402.nightshift-labs.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-18).

Checks a domain's email security configuration including MX records, DMARC policy, and overall email security score

## Facts

- Endpoint: GET https://nightshift-x402.nightshift-labs.workers.dev/v1/domain/email-check?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nightshift-labs-domain-email-security-check-d96dc831
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Mqt7-ydgMsxzt9RfXcUCu

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability nightshift-labs-domain-email-security-check-d96dc831
```

Example prompt: Can you check the email security setup for stripe.com — I want to know their MX records, DMARC policy, and overall email security score?

## When to prefer this

Use this endpoint when you need a quick, structured assessment of a domain's email security posture — specifically MX records, DMARC policy, and a composite security score — without manually querying DNS. At $0.005 per call it's cost-effective for per-domain checks in agent workflows. Prefer it over raw DNS lookups when you want pre-interpreted security scoring and issue detection in a single call.

## Known failure modes

- Invalid or non-existent domain returns an error or empty MX records
- Domain without DMARC record may return null or 'none' policy
- Network timeouts on DNS lookups for slow-resolving domains
- Malformed domain input (e.g. including protocol prefix) may return a validation error

## How this service works

Domain DNS and email-security check: A/AAAA, NS, MX (incl. null MX), SPF, DMARC policy, CAA, plus a list of issues and a 0-100 email security score. Use before sending email to or trusting a domain.

## Output

Returns a JSON object containing the queried domain, an array of MX records (each with host and priority), a DMARC policy string (e.g. 'quarantine', 'reject', 'none'), an email security score from 0–100, and an array of identified issues with the domain's email configuration.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "domain"
     ],
     "properties": {
      "domain": {
       "type": "string",
       "description": "domain name, e.g. example.com"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mx": [
   {
    "host": "github-com.mail.protection.outlook.com",
    "priority": 0
   }
  ],
  "domain": "github.com",
  "issues": [],
  "dmarcPolicy": "quarantine",
  "emailSecurityScore": 100
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nightshift-labs-domain-email-security-check-d96dc831/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nightshift-x402.nightshift-labs.workers.dev](https://www.zero.xyz/host/nightshift-x402.nightshift-labs.workers.dev/llms.txt)
