Get DNS records
curl --request GET \
--url https://dev.namify.host/api/v1/dns/dns-records \
--header 'Authorization: Bearer <token>'import requests
url = "https://dev.namify.host/api/v1/dns/dns-records"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://dev.namify.host/api/v1/dns/dns-records', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dev.namify.host/api/v1/dns/dns-records",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://dev.namify.host/api/v1/dns/dns-records"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dev.namify.host/api/v1/dns/dns-records")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.namify.host/api/v1/dns/dns-records")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"dns_records": [
{
"type": "A",
"host": "www",
"value": "203.0.113.10",
"time_to_live": 3600,
"status": "Active"
}
]
}{
"message": "Unauthorized"
}{
"status": "ERROR",
"message": "Invalid order ID"
}DNS
View DNS Records
Returns DNS records for a domain. Use record_type to filter by type — defaults to A if omitted. Supported types: A, AAAA, CNAME, MX, TXT, NS, SRV, SOA.
Prerequisite: DNS service must be activated for the domain via POST /api/v1/dns/activate before records can be retrieved.
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>'import requests
url = "https://dev.namify.host/api/v1/dns/dns-records"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://dev.namify.host/api/v1/dns/dns-records', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dev.namify.host/api/v1/dns/dns-records",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://dev.namify.host/api/v1/dns/dns-records"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dev.namify.host/api/v1/dns/dns-records")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.namify.host/api/v1/dns/dns-records")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"dns_records": [
{
"type": "A",
"host": "www",
"value": "203.0.113.10",
"time_to_live": 3600,
"status": "Active"
}
]
}{
"message": "Unauthorized"
}{
"status": "ERROR",
"message": "Invalid order ID"
}Authorizations
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 of the domain.
Filter records by type. Defaults to A if omitted.
Available options:
A, AAAA, CNAME, MX, TXT, NS, SRV, SOA Response
DNS records retrieved successfully.
Show child attributes
Show child attributes