Get Domain
curl --request GET \
--url https://api.example.com/domains/{identifier}import requests
url = "https://api.example.com/domains/{identifier}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/domains/{identifier}', 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.example.com/domains/{identifier}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/domains/{identifier}"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/domains/{identifier}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/domains/{identifier}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "<string>",
"domain": "<string>",
"status": "<string>",
"config": {},
"tracking": {},
"records": {}
}Domains
Get Domain
Get domain details
Get Domain
curl --request GET \
--url https://api.example.com/domains/{identifier}import requests
url = "https://api.example.com/domains/{identifier}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/domains/{identifier}', 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.example.com/domains/{identifier}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/domains/{identifier}"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/domains/{identifier}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/domains/{identifier}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "<string>",
"domain": "<string>",
"status": "<string>",
"config": {},
"tracking": {},
"records": {}
}Description
Get detailed information about a specific domain.Parameters
Domain ID or name. Example:
mail.yourdomain.com or domain_abc123Response
Unique domain ID.
Domain name.
Status:
PENDING, VERIFIED, FAILED, etc.Domain configuration.
Tracking settings.
DNS records configured.
Examples
curl "https://api.usesendly.app/v1/domains/mail.yourdomain.com" \
-H "Authorization: Bearer se_your_api_key"
const domain = await client.domains.get('mail.yourdomain.com')
console.log(`Domain: ${domain.domain}`)
console.log(`Status: ${domain.status}`)
import { Sendly } from '@sendlyapp/sdk'
const client = new Sendly()
const domain = await client.domains.get('mail.yourdomain.com')
Check Verification Status
const domain = await client.domains.get('mail.yourdomain.com')
if (domain.status === 'VERIFIED') {
console.log('✅ Domain verified')
} else if (domain.status === 'PENDING') {
console.log('⏳ Pending verification')
} else if (domain.status === 'FAILED') {
console.log('❌ Verification failed')
}
curl "https://api.usesendly.app/v1/domains/mail.yourdomain.com" \
-H "Authorization: Bearer se_your_api_key" | jq '.status'
Need help? Contact support@usesendly.app
⌘I