List all domains
curl --request GET \
--url https://www.atom.com/api/registrar/v1/domains \
--header 'Authorization: Bearer <token>'import requests
url = "https://www.atom.com/api/registrar/v1/domains"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.atom.com/api/registrar/v1/domains', 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://www.atom.com/api/registrar/v1/domains",
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://www.atom.com/api/registrar/v1/domains"
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://www.atom.com/api/registrar/v1/domains")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.atom.com/api/registrar/v1/domains")
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{
"success": true,
"data": [
{
"domain_name": "example.com",
"status": "active",
"extension": "com",
"created_date": "2024-01-15 10:30:00",
"updated_date": "2024-02-10 14:20:00",
"expiry_date": "2025-01-15 10:30:00",
"auto_renew": true,
"privacy_protect": false,
"transfer_locked": true,
"dnssec_enabled": false,
"nameservers": [
"ns1.atom.com",
"ns2.atom.com"
],
"registrant_handle": "REG_12345"
}
],
"pagination": {
"current_page": 1,
"total_pages": 5,
"per_page": 20,
"total_records": 87
}
}{
"success": false,
"error": "Unauthorized",
"message": "Invalid registrar API token or access has been revoked. Please request registrar API access from your dashboard."
}{
"success": false,
"error": "Bad Request",
"message": "Invalid input provided"
}Domains
List all domains
Get a paginated list of all domains owned by the authenticated user. Supports search, filtering by extension, and pagination.
GET
/
registrar
/
v1
/
domains
List all domains
curl --request GET \
--url https://www.atom.com/api/registrar/v1/domains \
--header 'Authorization: Bearer <token>'import requests
url = "https://www.atom.com/api/registrar/v1/domains"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.atom.com/api/registrar/v1/domains', 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://www.atom.com/api/registrar/v1/domains",
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://www.atom.com/api/registrar/v1/domains"
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://www.atom.com/api/registrar/v1/domains")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.atom.com/api/registrar/v1/domains")
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{
"success": true,
"data": [
{
"domain_name": "example.com",
"status": "active",
"extension": "com",
"created_date": "2024-01-15 10:30:00",
"updated_date": "2024-02-10 14:20:00",
"expiry_date": "2025-01-15 10:30:00",
"auto_renew": true,
"privacy_protect": false,
"transfer_locked": true,
"dnssec_enabled": false,
"nameservers": [
"ns1.atom.com",
"ns2.atom.com"
],
"registrant_handle": "REG_12345"
}
],
"pagination": {
"current_page": 1,
"total_pages": 5,
"per_page": 20,
"total_records": 87
}
}{
"success": false,
"error": "Unauthorized",
"message": "Invalid registrar API token or access has been revoked. Please request registrar API access from your dashboard."
}{
"success": false,
"error": "Bad Request",
"message": "Invalid input provided"
}Authorizations
Registrar API Bearer token. Obtain from dashboard at /dashboard/seller/api-access after requesting Registrar API access.
Query Parameters
Page number for pagination (default: 1)
Required range:
x >= 1Number of results per page (default: 20, max: 100)
Required range:
1 <= x <= 100⌘I