---
title: "Returns the details of a specific primary domain."
method: GET
path: "/domains/primary/{domainId}"
tags: ["domains - primary"]
---

# Returns the details of a specific primary domain.

`GET /domains/primary/{domainId}`

## Request

- Base URL: `https://manager.digicertdns.com/v1`
- URL: `https://manager.digicertdns.com/v1/domains/primary/{domainId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/digicert/apis/digicert-dns/docs/domains/primary/:domainId/get.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint returns the details of a specific primary domain, helping users manage and configure it effectively.</br></br>Key features include:</br></br>- **Clear success messaging:** Returns a `200` success code with a confirmation message indicating the successful completion of the requested action.</br>- **Comprehensive error handling:** Returns `400` and `404` error codes with clear descriptions when requests fail.</br>- **Targeted data retrieval:** Employs the `domainId` parameter to return the specified domain's details, ensuring accuracy and relevance in the response.

## Path parameters

- `domainId` integer, required

## Response `200`

Primary domain returned successfully.

- DomainById[]
  - `id` integer
  - `name` string
  - `type` string
  - `noOfRecords` number
  - `dnssec` boolean
  - `gtd` boolean
  - `createdAt` string
  - `modifiedAt` string
  - `status` integer
  - `queries` DomainStats
    - `total` integer
    - `refused` integer
    - `servfail` integer
    - `notimpl` integer
    - `responsecount` integer
    - `noerror` integer
    - `nxdomain` integer
    - `formerr` integer
  - `resourceGroups` DomainByIdResourceGroups[]
    - `id` integer
    - `name` string
  - `soa` DomainByIdSoa
    - `id` integer
    - `name` string
  - `tsigKeyConfig` TsigKeyConfigResponse[]
    - `ipset` TsigKeyConfigResponseIpset
      - `name` string
      - `transferFrom` string[]
      - `notifyFrom` string[]
      - `ipSetId` integer
    - `tsigKey` TsigKeyConfigResponseTsigKey, nullable
      - `id` integer
      - `name` string
  - `nameserverSet` DomainByIdNameserverSet
    - `id` integer
    - `nameservers` NameserverItem
      - `id` number
      - `isSystem` boolean
      - `isSecondary` boolean
      - `fqdn` string
      - `ipv4` string
      - `ipv6` string
      - `vanityNameserverFQDN` string
      - `createdTs` string
      - `modifiedTs` string
  - `valiMail` Valimail
    - `enabled` boolean
    - `policy` string
    - `additionalRua` string

## Other responses

- `400`: Request is malformed or invalid.
- `404`: Resource not found.

---

[API](https://skmtc.dev/digicert/apis/digicert-dns.md) - [All operations](https://skmtc.dev/digicert/apis/digicert-dns/llms.txt) - [OpenAPI document](https://skmtc.dev/digicert/apis/digicert-dns/revisions/c74fc728cff8?raw)
