{"uid":"cap_m0-dgnLmMZYxoaHGigITY","slug":"agentmail-zone-file-116c59e7","name":"AgentMail Get Zone File","description":"Get Zone File","url":"https://mpp.api.agentmail.to/v0/pods/:pod_id/domains/:domain_id/zone-file","method":"GET","headers":{},"bodySchema":{"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\")"}}},"responseSchema":{"type":"string","format":"binary"},"example":null,"exampleRequest":null,"tags":["email","inboxes","domains","drafts","threads","webhooks","messaging","ai","social"],"displayCostAmount":"0","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"proven_free","priceSource":"unknown","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"free","summary":"Free","primary":null,"accepted":[]},"paymentMethods":[],"brandName":"AgentMail","brandSlug":"agentmail","brandBaseUrl":"https://agentmail.to","brandDocsUrl":"https://docs.agentmail.to","whatItDoes":"Retrieves the DNS zone file for a custom domain registered under a specific AgentMail pod","exampleAgentPrompt":"Can you get the DNS zone file for the domain 'myagent.com' in my AgentMail pod so I can configure my DNS records?","exampleUseCases":[{"title":"Export DNS configuration for registrar setup","prompt":"I need to set up DNS at my registrar for myagent.com. Can you grab the zone file from my AgentMail pod so I have all the records I need?"},{"title":"Verify email routing records are correct","prompt":"Before going live with email on customdomain.ai, can you pull the zone file from my pod and show me all the MX and TXT records to make sure everything's configured properly?"},{"title":"Backup and migrate domain DNS records","prompt":"We're switching registrars next week. Can you fetch the complete zone file for agents.mycompany.com from my AgentMail pod so I have a backup of all our DNS settings?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:41:17.068Z","isFirstParty":false}