---
title: "Get a domain’s DNS records as a zone file"
method: GET
path: "/v1/domains/{id}/zone-file"
tags: ["Domains"]
---

# Get a domain’s DNS records as a zone file

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

## Request

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

The records to publish as a BIND zone file, `{ filename, content }`, for DNS providers that import one. See [Custom domains](https://agentboxd.com/docs/custom-domains#dns-records).

Permission: `domains:manage`.

## Path parameters

- `id` string, uuid, required

## Response `200`

OK

- object

## Other responses

- `4XX`: Error
- `5XX`: Error

---

[API](https://skmtc.dev/agentboxd/apis/agentboxd-api.md) · [All operations](https://skmtc.dev/agentboxd/apis/agentboxd-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentboxd/apis/agentboxd-api/revisions/ee7b079f0e97?raw)
