curl
curl "https://api.deliveryman.ai/api/v1/domain/?domain_id=0" \
-H "X-Api-Key: YOUR_API_KEY"import requests
url = "https://api.deliveryman.ai/api/v1/domain/"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.deliveryman.ai/api/v1/domain/', 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.deliveryman.ai/api/v1/domain/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$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.deliveryman.ai/api/v1/domain/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
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.deliveryman.ai/api/v1/domain/")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deliveryman.ai/api/v1/domain/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": 123,
"workspace_id": 123,
"domain": "<string>",
"warmup_days_remaining": 123,
"status": "creating",
"nameservers": [
"<string>"
],
"email_account_count": 123,
"created_on": "2023-11-07T05:31:56Z",
"deletion_started_on": "2023-11-07T05:31:56Z",
"setup_complete": true,
"naming_strategy": "random",
"custom_name": "<string>",
"redirect_subdomains_to": "<string>",
"warmup_active_days": 1073741823,
"current_setup_stage": -1,
"domain_usable_from": "2023-11-07T05:31:56Z",
"warmup_running": true,
"is_blocked": true
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Domains
Retrieve Domain
Returns details for a single domain, including its setup progress and the nameservers that must be added as NS records at your DNS provider.
GET
/
api
/
v1
/
domain
/
curl
curl "https://api.deliveryman.ai/api/v1/domain/?domain_id=0" \
-H "X-Api-Key: YOUR_API_KEY"import requests
url = "https://api.deliveryman.ai/api/v1/domain/"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api.deliveryman.ai/api/v1/domain/', 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.deliveryman.ai/api/v1/domain/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$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.deliveryman.ai/api/v1/domain/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
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.deliveryman.ai/api/v1/domain/")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.deliveryman.ai/api/v1/domain/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": 123,
"workspace_id": 123,
"domain": "<string>",
"warmup_days_remaining": 123,
"status": "creating",
"nameservers": [
"<string>"
],
"email_account_count": 123,
"created_on": "2023-11-07T05:31:56Z",
"deletion_started_on": "2023-11-07T05:31:56Z",
"setup_complete": true,
"naming_strategy": "random",
"custom_name": "<string>",
"redirect_subdomains_to": "<string>",
"warmup_active_days": 1073741823,
"current_setup_stage": -1,
"domain_usable_from": "2023-11-07T05:31:56Z",
"warmup_running": true,
"is_blocked": true
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Authorizations
Response
Success
Current status of the domain. creating while the domain is being set up, warmup once setup is done and
the domain is warming up, active once warmup is complete, deleting while it's being removed, error
if setup or deletion failed, and ns_mismatch if the domain's nameserver records no longer point to us.
Available options:
creating, error, warmup, active, deleting, ns_mismatch