Skip to main content
GET
/
registrar
/
v1
/
contacts
List contacts
curl --request GET \
  --url https://www.atom.com/api/registrar/v1/contacts \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://www.atom.com/api/registrar/v1/contacts"

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/contacts', 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/contacts",
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/contacts"

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/contacts")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://www.atom.com/api/registrar/v1/contacts")

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": [
    {
      "handle": "ATOM-12345",
      "type": "registrant_user",
      "label": "My Business Contact",
      "name": "Jane Doe",
      "email": "jane@example.com",
      "phone": "+1.2025551234",
      "fax": null,
      "organization": "Acme Corp",
      "address": [
        "123 Main St",
        "Suite 400"
      ],
      "city": "Chicago",
      "state": "IL",
      "zip": "60601",
      "country": "US",
      "disclosed_fields": [
        "name",
        "email"
      ],
      "verified": false
    }
  ],
  "total": 2
}
{
"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

Authorization
string
header
required

Registrar API Bearer token. Obtain from dashboard at /dashboard/seller/api-access after requesting Registrar API access.

Response

Successful operation

success
boolean
Example:

true

data
object[]
total
integer
Example:

2