Tracking Domain
Remove Tracking Domain
Remove the company tracking domain
DELETE
/
api
/
v1
/
tracking-domain
Remove Tracking Domain
curl --request DELETE \
--url https://api.sequenzy.com/api/v1/tracking-domain \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sequenzy.com/api/v1/tracking-domain"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sequenzy.com/api/v1/tracking-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.sequenzy.com/api/v1/tracking-domain",
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.sequenzy.com/api/v1/tracking-domain"
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.sequenzy.com/api/v1/tracking-domain")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequenzy.com/api/v1/tracking-domain")
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{
"success": true,
"removed": true,
"trackingDomain": null
}
{
"error": "You have view-only access to this company. Contact the owner to request edit permissions."
}
{
"error": "Cloudflare API request failed."
}
Remove your company tracking domain. New emails use Sequenzy’s shared tracking
domain.
Removing when no tracking domain is set succeeds with
A
Links in emails you already sent through the removed domain stop working. To
move to another tracking domain without breaking them, use Set Tracking
Domain instead and keep the old CNAME record.
removed: false. The next
sending domain you add creates a new tracking domain on its root, as the first
one did.
Requires the companies:manage scope and owner or admin access.
Request
curl -X DELETE "https://api.sequenzy.com/api/v1/tracking-domain" \
-H "Authorization: Bearer YOUR_API_KEY"
Response fields
boolean
true when a tracking domain was removed, false when none was set.null
Always
null.{
"success": true,
"removed": true,
"trackingDomain": null
}
{
"error": "You have view-only access to this company. Contact the owner to request edit permissions."
}
{
"error": "Cloudflare API request failed."
}
503 means the tracking provider could not release the hostname. The
tracking domain was kept, so you can retry.⌘I
Remove Tracking Domain
curl --request DELETE \
--url https://api.sequenzy.com/api/v1/tracking-domain \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sequenzy.com/api/v1/tracking-domain"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sequenzy.com/api/v1/tracking-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.sequenzy.com/api/v1/tracking-domain",
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.sequenzy.com/api/v1/tracking-domain"
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.sequenzy.com/api/v1/tracking-domain")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequenzy.com/api/v1/tracking-domain")
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{
"success": true,
"removed": true,
"trackingDomain": null
}
{
"error": "You have view-only access to this company. Contact the owner to request edit permissions."
}
{
"error": "Cloudflare API request failed."
}