domains
GET /v1/domains/{domainId}/dns/zone-file
Export a domain's DNS zone as a standard zone file.
Authentication
Send an API key as a bearer token. The key must carry the sites.view permission; a key without it is refused with 403, not 404.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X GET https://api.zinndigital.com/v1/domains/{domainId}/dns/zone-file \
-H "Authorization: Bearer zdk_live_…"Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
The domain's DNS records as one RFC 1035 zone file, ready to keep, compare or load into another DNS provider: $ORIGIN and $TTL first, owner names relative to the zone (@ is the apex), host targets fully qualified with a final dot, and a TXT value longer than 255 bytes split into quoted strings. The SOA is left out (the provider manages it). It holds every record the record list shows across all of its pages, with the same product-line filter: a Footprint-Free domain never exports the platform address records the editor hides. Requires sites.view, RLS-scoped. The same two 404s as the record list: NOT_FOUND (no such domain in your scope) and DNS_NOT_HOSTED (we do not host this domain's DNS, so there is no zone to export).
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
domainId (path) | Uuid | Yes | The domain's id. |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
domain | string | Yes | The zone's name. |
filename | string | Yes | A suggested file name for a download, <domain>.zone. |
record_count | integer | Yes | How many records the file holds. |
zone_file | string | Yes | The zone file text. |
Errors this endpoint can return
401 · 403 · 404 · 503