# Download DNS records (CSV)

> GET /domains/:id/records.csv — the DNS records for a domain as a CSV file.

`GET /domains/:id/records.csv`

The same records as [GET /domains/:id](https://www.senddart.com/docs/api/domains-get), as a CSV file (`text/csv`, downloaded as `<domain>-dns-records.csv`) you can hand to whoever manages your DNS. The columns are `Type`, `Host` (relative to your DNS zone), `Full name`, `Value`, `Priority`, `TTL`, `Purpose` and `Status`. Errors are JSON as usual: `not_found` for a domain that is not yours. Needs an API key with read access. A sending-only key gets `401 restricted_api_key`.

**Request**

```bash
curl -X GET 'https://www.senddart.com/api/domains/DOMAIN_ID/records.csv' \
  -H 'Authorization: Bearer mb_xxxxxxxxx'
```
