---
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.

---

[API](https://skmtc.net/dnsimple/apis/dnsimple-api.md) · [All operations](https://skmtc.net/dnsimple/apis/dnsimple-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dnsimple/dnsimple-api/versions/270bb4f6f532/schema)
