---
title: "Lists the records of a specific secondary domain."
method: GET
path: "/domains/secondary/{domainId}/records"
tags: ["records - secondary"]
---

# Lists the records of a specific secondary domain.

`GET /domains/secondary/{domainId}/records`

## Request

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

This endpoint lists the records of a specific secondary domain, providing essential data for effective domain management and troubleshooting.</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`, `401`, and `404` error codes with clear descriptions when requests fail.</br>- **Targeted data retrieval:** Employs the `domainId` parameter to return the specified domain's records, ensuring accuracy and relevance in the response.

## Path parameters

- `domainId` integer, required

## Response `200`

Records returned successfully.

- SecondaryRecords
  - `recordType` string
  - `name` string
  - `content` string
  - `ttl` integer

## Other responses

- `400`: Request is malformed or invalid.
- `401`: Token is missing or expired.
- `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)
