All endpoints

Export BIND zone file

GEThttps://myagentmail.com/v1/domains/{domain}/zone-file

Returns the current DNS records as a BIND-format zone file fragment. Convenient for pasting into a DNS editor that accepts zone-file imports.

Path parameters

domain
required
string

Fully-qualified domain name

Responses

200text/plainZone file text
string

Authentication

Send your API key in the X-API-Key header (or Authorization: Bearer <key>). Any prefix accepted by this endpoint — tk_, wk_, ak_, or sa_ — is documented in the key prefix table.