# AgentMail Get Zone File

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

Retrieves the DNS zone file for a custom domain registered under a specific AgentMail pod

## Facts

- Endpoint: GET https://mpp.api.agentmail.to/v0/pods/:pod_id/domains/:domain_id/zone-file
- Price: Free
- Status: unknown
- Last checked: 2026-09-13
- 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-116c59e7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_m0-dgnLmMZYxoaHGigITY

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-116c59e7
```

Example prompt: Can you get the DNS zone file for the domain 'myagent.com' in my AgentMail pod so I can configure my DNS records?

## When to prefer this

Use this endpoint when you need to retrieve the DNS zone file for a custom domain managed within an AgentMail pod — for example, to inspect current DNS records, export configuration, or set up DNS at a registrar for email delivery. This is specific to AgentMail-managed domains and pods, not generic DNS lookup tools.

## Known failure modes

- 404 if pod_id does not exist or is not accessible
- 404 if domain_id (domain name) is not registered under the specified pod
- 401/403 if the Bearer token is missing or invalid
- 400 if pod_id or domain_id path parameters are malformed or missing

## How this service works

Get Zone File

## Output

Returns the raw DNS zone file as a binary stream containing all DNS resource records for the specified domain, including MX, TXT, CNAME, and other records needed to configure email routing for the AgentMail-managed domain.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "pod_id",
  "domain_id"
 ],
 "properties": {
  "pod_id": {
   "type": "string",
   "title": "PodId",
   "description": "ID of pod."
  },
  "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-116c59e7/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)
