---
title: "Download a zone file"
method: GET
path: "/{account}/zones/{zone}/file"
tags: ["zones"]
---

# Download a zone file

`GET /{account}/zones/{zone}/file`

Download the zonefile for an existing zone.

## Path parameters

- `account` integer, required
- `zone` string, required

## Response `200`

Successfully retrieved zone file.

- object
  - `data` ZoneFile, required — A DNS zone file.
    - `zone` string, required

## Other responses

- `404` — The requested resource doesn't exist.

## Changes

- **2025-07-11** (v2) `06780be0ef17` — 3 info
  - the response property `data` became required for the status `200`
  - the response property `data/zone` became required for the status `200`
  - the response property `message` became required for the status `404`
- **2023-07-18** (v2) `c8591dcf8c29` — 3 breaking
  - the response property `data` became optional for the status `200`
  - the response property `data/zone` became optional for the status `200`
  - the response property `message` became optional for the status `404`

[Change history](https://skmtc.dev/dnsimple/apis/dnsimple-api/changes/:account/zones/:zone/file/get.md)

---

[API](https://skmtc.dev/dnsimple/apis/dnsimple-api.md) · [All operations](https://skmtc.dev/dnsimple/apis/dnsimple-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dnsimple/dnsimple-api/revisions/f0f58c839e7d/schema)
