Skip to main content
GET
/
api
/
v1
/
dns
/
dns-records
Get DNS records
curl --request GET \
  --url https://dev.namify.host/api/v1/dns/dns-records \
  --header 'Authorization: Bearer <token>'
{
  "dns_records": [
    {
      "type": "A",
      "host": "www",
      "value": "203.0.113.10",
      "time_to_live": 3600,
      "status": "Active"
    }
  ]
}

Authorizations

Authorization
string
header
required

A personal access token. Obtain one from the dashboard under Settings > API Key. Include it in the Authorization header as Bearer <token>. Unauthenticated requests to protected routes return 401 Unauthorized.

Query Parameters

order_id
integer
required

Order ID of the domain.

record_type
enum<string>

Filter records by type. Defaults to A if omitted.

Available options:
A,
AAAA,
CNAME,
MX,
TXT,
NS,
SRV,
SOA

Response

DNS records retrieved successfully.

dns_records
object[]