---
title: "Get domain"
method: GET
path: "/services/{serviceId}/domains/{domainName}"
tags: ["Domains"]
---

# Get domain

`GET /services/{serviceId}/domains/{domainName}`

Retrieve a specific domain for the specified service.

## Path parameters

- `serviceId` string, required
- `domainName` string, required

## Response `200`

The details of the domain.

- DomainDetailsResponse
  - `domain` DomainDetails
    - `id` string — The ID of the domain.
    - `isDisabled` boolean — Flag that shows if the domain is disabled.
    - `name` string — The name of the domain.
    - `requireTls` boolean — If set to true, this requires messages for the domain only be sent over a TLS connection. If a TLS connection cannot be established, Mailgun will not deliver the message. If set to false, Mailgun will still try and upgrade the connection, but if Mailgun cannot, the message will be delivered over a plaintext SMTP connection.
    - `skipVerification` boolean — If set to true, the certificate and hostname will not be verified when trying to establish a TLS connection and Mailgun will accept any certificate during delivery of a message. If set to false, Mailgun will verify the certificate and hostname. If either one can not be verified, a TLS connection will not be established.
    - `smtpLogin` string — SMTP server password for authentication.
    - `spamAction` 'disabled' | 'block' | 'tag' — Disabled, block or tag. Default to disabled. If disabled, no spam filtering will occur for inbound messages.
    - `state` string — The current verification status of the domain.
    - `type` 'custom' | 'sandbox' — The classification of the domain.
    - `useAutomaticSenderSecurity` boolean — Enable Automatic Sender Security. This requires setting DNS CNAME entries for DKIM keys instead of a TXT record.
    - `webPrefix` string — Sets your open, click and unsubscribe URLs domain name prefix. Links rewritten or added by Mailgun in your emails will look like <web_scheme>://<web_prefix>.<domain_name>/...
    - `webScheme` 'http' | 'https' — Sets your open, click and unsubscribe URLs to use http or https. Value either `http` or `https`. Defaults to `http`. In order for https to work, you must have a valid cert created for your domain.
    - `wildcard` boolean — Allows domain to accept inbound messages received on subdomains that have MX records pointed to Mailgun.
    - `encryptIncomingMessage` boolean — Enable encrypting incoming messages for the given domain. This cannot be altered via API after being set for security purposes. Reach out to Support to disable if necessary.
    - `messageTtl` integer — Specifies the time-to-live (TTL) in seconds for retrieving both incoming and outgoing messages. The maximum TTL value is determined by your subscription plan.
  - `receivingDnsRecords` ReceivingRecords[] — The receiving records of the domain.
    - `isActive` boolean — True if the domain is active.
    - `cached` string[] — Any cached value of the record.
    - `priority` integer — The priority for the record.
    - `recordType` string — The type of the record.
    - `valid` 'valid' | 'invalid' — The validity of the record.
    - `value` string — The value of the record.
  - `sendingDnsRecords` SendingRecords[] — The sending records of the domain.
    - `isActive` boolean — True if the domain is active.
    - `cached` string[] — Any cached value of the record.
    - `name` string — The name of the domain record.
    - `recordType` string — The type of the record.
    - `valid` 'valid' | 'invalid' — The validity of the record.
    - `value` string — The value of the record.

---

[API](https://skmtc.net/sinch/apis/fax-api.md) · [All operations](https://skmtc.net/sinch/apis/fax-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sinch/fax-api/revisions/ebcbb377ee0f/schema)
