# AgentMail Get Domain Zone File

> AgentMail Get Domain Zone File is a free API for AI agents from AgentMail at mpp.api.agentmail.to, Free, status unknown (last checked 2026-10-12).

Retrieves the raw DNS zone file for a specified domain managed by AgentMail

## Facts

- Endpoint: GET https://mpp.api.agentmail.to/v0/domains/:domain_id/zone-file?utm_source=zero.xyz
- Price: Free
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Provider: AgentMail
- Docs: https://docs.agentmail.to
- Website: https://agentmail.to
- Tags: email, inboxes, domains, drafts, threads, webhooks, messaging, ai, social
- Canonical page: https://www.zero.xyz/c/agentmail-zone-file-aefc39f9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y2nDMO01NIylbp7MKhmDh

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 agentmail-zone-file-aefc39f9
```

Example prompt: Can you fetch the DNS zone file for my AgentMail domain 'myagent-domain.com' so I can review the DNS records?

## When to prefer this

Use this endpoint when you need to inspect, export, or audit the DNS configuration of a domain registered under AgentMail. Ideal for verifying DNS records are correctly set up for email delivery, diagnosing deliverability issues, or migrating DNS configuration to another provider.

## Known failure modes

- Domain not found: returns error if domain_id does not exist or belongs to a different account
- Authentication failure: missing or invalid Bearer token returns 401 Unauthorized
- Invalid domain_id format: malformed domain name returns 400 Bad Request
- Empty zone file: domain exists but has no DNS records configured

## How this service works

Get Zone File

## Output

Returns the raw DNS zone file as binary content, containing all DNS resource records (MX, TXT, CNAME, A, etc.) for the specified domain, which can be used for DNS configuration, verification, or migration purposes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "domain_id"
 ],
 "properties": {
  "domain_id": {
   "type": "string",
   "title": "DomainId",
   "description": "The name of the domain. (e.g., \" your-domain.com\")"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "string",
 "format": "binary"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentmail-zone-file-aefc39f9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mpp.api.agentmail.to](https://www.zero.xyz/host/mpp.api.agentmail.to/llms.txt)
