List DNS records for a domain

GET/v1/dns/domains/{dns_domain_id}/records

A GET request to the /v1/dns/domains/{dns_domain_id}/records endpoint will show a list of DNS records for a domain specified in the path parameter. You can make the request more specific using the query parameters.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

FieldDetails
dns_domain_id
string

A unique identifier of a DNS domain.

Query Parameters

FieldDetails
type?
string

Value in: "PTR", "SOA", "NS", "TXT", "A", "AAAA", "SRV", "MX", "CNAME", "ALIAS", "CAA"

A record type.

per_page?
integer

Default: 20

Range: 1–100

The number of results [ 1 .. 100 ] displayed on a page. By default, 20 results are shown.

page?
integer

Default: 1

Min: 1

The number of a page (>= 1) that will be returned. By default, it's 1.

sorting?
string

Default: "id"

This parameter sorts items. By default, it's id. Also, it's possible to sort by name, type, updated_at and created_at.

direction?
string

Value in: "ASC", "DESC"

Default: "ASC"

This parameter defines if items are sorted in an ascending ASC or descending DESC order. By default, ASC is set up.

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/dns/domains/JxboYKeg/records"
[  {    "id": "46dBXa79",    "type": "A",    "name": "example-648.com",    "domain_id": "JxboYKeg",    "data": "example-648.com",    "priority": 65,    "ttl": 3600,    "updated_at": "2025-12-31T00:00:00Z",    "created_at": "2025-12-31T00:00:00Z"  },  {    "id": "BDbDxbl2",    "type": "A",    "name": "example-649.com",    "domain_id": "JxboYKeg",    "data": "example-649.com",    "priority": 66,    "ttl": 3600,    "updated_at": "2025-12-31T00:00:00Z",    "created_at": "2025-12-31T00:00:00Z"  },  {    "id": "4oeEva0B",    "type": "TXT",    "name": "example-650.com",    "domain_id": "JxboYKeg",    "data": "example-650.com",    "priority": 67,    "ttl": 3600,    "updated_at": "2025-12-31T00:00:00Z",    "created_at": "2025-12-31T00:00:00Z"  }]