curl --request DELETE \
--url https://api.instacloud.com/orgs/{orgId}/domains/{domainName}/nameservers \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.instacloud.com/orgs/{orgId}/domains/{domainName}/nameservers"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.instacloud.com/orgs/{orgId}/domains/{domainName}/nameservers', 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.instacloud.com/orgs/{orgId}/domains/{domainName}/nameservers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
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.instacloud.com/orgs/{orgId}/domains/{domainName}/nameservers"
req, _ := http.NewRequest("DELETE", 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.delete("https://api.instacloud.com/orgs/{orgId}/domains/{domainName}/nameservers")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.instacloud.com/orgs/{orgId}/domains/{domainName}/nameservers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"domainName": "<string>",
"status": "registered",
"hostnames": [
{
"hostname": "<string>",
"state": "pending",
"service": "<string>",
"reason": "<string>"
}
],
"registeredAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"autorenew": true,
"privacy": true,
"locked": true,
"nameservers": [
"<string>"
],
"delegated": true,
"custody": "registrar",
"transferLockExpiresAt": "2023-11-07T05:31:56Z",
"orderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Reset domain nameservers
Token scope: account · org — read-only tokens refused (not a GET).
Point the domain back at the registrar’s own nameservers, which is where an attach publishes. Never refused for a hostname in the way: this is the repair. (admin+)
curl --request DELETE \
--url https://api.instacloud.com/orgs/{orgId}/domains/{domainName}/nameservers \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.instacloud.com/orgs/{orgId}/domains/{domainName}/nameservers"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.instacloud.com/orgs/{orgId}/domains/{domainName}/nameservers', 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.instacloud.com/orgs/{orgId}/domains/{domainName}/nameservers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
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.instacloud.com/orgs/{orgId}/domains/{domainName}/nameservers"
req, _ := http.NewRequest("DELETE", 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.delete("https://api.instacloud.com/orgs/{orgId}/domains/{domainName}/nameservers")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.instacloud.com/orgs/{orgId}/domains/{domainName}/nameservers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"domainName": "<string>",
"status": "registered",
"hostnames": [
{
"hostname": "<string>",
"state": "pending",
"service": "<string>",
"reason": "<string>"
}
],
"registeredAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"autorenew": true,
"privacy": true,
"locked": true,
"nameservers": [
"<string>"
],
"delegated": true,
"custody": "registrar",
"transferLockExpiresAt": "2023-11-07T05:31:56Z",
"orderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Session access JWT or an API token (insta_<prefix>_<secret>).
Response
Default Response
detached: every service its hostnames named is gone — attach it again
registered, attaching, active, attach_failed, detached Show child attributes
Show child attributes
the registrar transfer lock: while it is on, no other registrar can pull the domain away. Turn it off to move the domain out. What the last write reported, or what registration asked for — nothing reads it back
what the registrar holds. Empty means never written — only a nameserver write fills it in
the zone is answered by nameservers InstaCloud cannot write to (custody foreign), so nothing published resolves and an attach is refused. A MANAGED delegation reads false: the platform still publishes there
who answers the domain's zone: the registrar's own nameservers, a managed InstaCloud zone (delegated, still platform-published), or somewhere the platform cannot write
registrar, managed, foreign ICANN 60-day lock after registration: no transfer out before this, whatever locked says