---
title: "Download BIND zone lines for a custom domain"
method: GET
path: "/api/v1/domains/{id}/zone-file"
tags: ["Domains"]
---

# Download BIND zone lines for a custom domain

`GET /api/v1/domains/{id}/zone-file`

## Request

- Base URL: `https://cooperemail.com`
- URL: `https://cooperemail.com/api/v1/domains/{id}/zone-file`
- Auth: HTTP bearer

text/plain BIND-style lines for every required record. Another account's id is 404 domain_not_found.

## Path parameters

- `id` string, required

## Response `200`

Zone file

## Other responses

- `404`: domain_not_found

---

[API](https://skmtc.dev/cooperemail/apis/cooper-email-api.md) · [All operations](https://skmtc.dev/cooperemail/apis/cooper-email-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cooperemail/apis/cooper-email-api/revisions/6d800a7b3e33?raw)
