Skip to main content
DELETE
/
custom-tracking-domains
/
{hostname}
/
{scope}
Delete Custom Tracking Domain
const options = {method: 'DELETE', headers: {'X-Api-Key': '<x-api-key>'}};

fetch('https://api.mailchannels.net/tx/v1/custom-tracking-domains/{hostname}/{scope}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "errors": [
    "<string>"
  ]
}

Headers

X-Api-Key
string
required

Path Parameters

hostname
string
required
scope
enum<string>
required
Available options:
click,
open,
unsubscribe

Response

Custom tracking domain successfully deleted