cURL
curl --request GET \
--url https://api.useanima.sh/v1/domains/{id}/dns-records \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.useanima.sh/v1/domains/{id}/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://api.useanima.sh/v1/domains/{id}/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://api.useanima.sh/v1/domains/{id}/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://api.useanima.sh/v1/domains/{id}/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://api.useanima.sh/v1/domains/{id}/dns-records")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.useanima.sh/v1/domains/{id}/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{
"txt": {
"name": "<string>",
"value": "<string>"
},
"mailFrom": {
"name": "<string>",
"mx": {
"value": "<string>",
"priority": 123
},
"spf": "<string>"
},
"dkim": [
{
"name": "<string>",
"value": "<string>"
}
],
"mx": {
"name": "<string>",
"value": "<string>",
"priority": 123
},
"spf": "<string>",
"dmarc": "<string>"
}API Reference
Get domains dns records
GET
/
domains
/
{id}
/
dns-records
cURL
curl --request GET \
--url https://api.useanima.sh/v1/domains/{id}/dns-records \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.useanima.sh/v1/domains/{id}/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://api.useanima.sh/v1/domains/{id}/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://api.useanima.sh/v1/domains/{id}/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://api.useanima.sh/v1/domains/{id}/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://api.useanima.sh/v1/domains/{id}/dns-records")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.useanima.sh/v1/domains/{id}/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{
"txt": {
"name": "<string>",
"value": "<string>"
},
"mailFrom": {
"name": "<string>",
"mx": {
"value": "<string>",
"priority": 123
},
"spf": "<string>"
},
"dkim": [
{
"name": "<string>",
"value": "<string>"
}
],
"mx": {
"name": "<string>",
"value": "<string>",
"priority": 123
},
"spf": "<string>",
"dmarc": "<string>"
}Authorizations
BearerAuthApiKeyAuth
JWT Bearer token obtained from authentication. Pass as: Authorization: Bearer
Path Parameters
Unique domain identifier
Pattern:
^[cC][^\s-]{8,}$Response
200 - application/json
OK
Complete set of DNS records required for email deliverability
TXT record for domain ownership verification
Show child attributes
Show child attributes
MAIL FROM configuration for bounce handling
Show child attributes
Show child attributes
DKIM signing key records for email authentication
Show child attributes
Show child attributes
MX record for inbound email routing
Show child attributes
Show child attributes
SPF record value for the root domain
DMARC policy record value
⌘I
