{"uid":"cap_Y2nDMO01NIylbp7MKhmDh","slug":"agentmail-zone-file-aefc39f9","name":"AgentMail Get Domain Zone File","description":"Get Zone File","url":"https://mpp.api.agentmail.to/v0/domains/:domain_id/zone-file?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["domain_id"],"properties":{"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 raw DNS zone file for a specified domain managed by AgentMail","exampleAgentPrompt":"Can you fetch the DNS zone file for my AgentMail domain 'myagent-domain.com' so I can review the DNS records?","exampleUseCases":[{"title":"Verify email delivery DNS records","prompt":"I need to check if all the MX and TXT records are properly configured in our DNS zone file for 'company-email.com' to ensure emails are being delivered correctly."},{"title":"Migrate domain to new provider","prompt":"Can you export the complete zone file for 'sales-team.agentmail.com' so I can transfer all our DNS records to our new hosting provider?"},{"title":"Diagnose email deliverability issues","prompt":"We're having trouble with email bounce-backs on 'support-domain.com'. Can you pull the zone file so I can audit the current DNS configuration and identify what might be wrong?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T06:43:03.058Z","isFirstParty":false,"canonicalSlug":"agentmail-zone-file-aefc39f9"}