---
title: "Get an email domain by domain name with DNS records"
method: GET
path: "/email-domains/by-domain/{domain}"
tags: ["Email Domains"]
---

# Get an email domain by domain name with DNS records

`GET /email-domains/by-domain/{domain}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/email-domains/by-domain/{domain}`
- Auth: HTTP bearer

## Path parameters

- `domain` string, required

## Response `200`

Email domain details with DNS records

- EmailDomainWithDnsResponse
  - `dns_records` DnsRecordResponse[], required
    - `name` string, required: DNS record name (host)
    - `priority` integer, nullable: Priority (for MX records)
    - `record_type` string, required: Record type: TXT, CNAME, MX
    - `status` 'unknown' | 'verified' | 'pending' | 'failed', required: Verification status: unknown, verified, pending, failed
    - `value` string, required: DNS record value
  - `domain` EmailDomainResponse, required
    - `created_at` string, required
    - `domain` string, required
    - `id` integer, required
    - `last_verified_at` string, nullable
    - `provider_id` integer, required
    - `status` string, required
    - `updated_at` string, required
    - `verification_error` string, nullable

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Domain not found
- `500`: Internal server error

## Changes

- **2026-01-11** `50604ba8d4a8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/email-domains/by-domain/:domain/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
