---
title: "Get DNS records for a channel"
method: GET
path: "/api/public/email-channel/dns-records/{id}"
tags: ["email-channel"]
---

# Get DNS records for a channel

`GET /api/public/email-channel/dns-records/{id}`

## Request

- Base URL: `https://api.vambe.me`
- URL: `https://api.vambe.me/api/public/email-channel/dns-records/{id}`
- Auth: none required
- TypeScript: <https://skmtc.dev/vambe/apis/vambe-ai-api/docs/api/public/email-channel/dns-records/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the CNAME / TXT / MX records that must be added to your DNS provider to validate the domain.

## Path parameters

- `id` string, uuid, required

## Headers

- `x-api-key` string, required

## Response `200`

- DnsRecordResponseDto[]
  - `id` string, required
  - `record_type` 'cname' | 'mx' | 'txt', required
  - `host` string, required
  - `data` string, required
  - `valid` boolean, required
  - `purpose` 'spf' | 'dkim1' | 'dkim2' | 'inbound_mx', required

## Other responses

- `404`: Email channel not found
- `default`

---

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