Delete domain
Delete a domain registered on our API
curl https://api.acymailer.com/api/deleteDomainIdentity \
-X DELETE \
-H 'Content-Type: application/json' \
-H 'API-KEY: your-license-key' \
-H 'Version: external' \
-d '{"domain": "example.com","siteUrl": "https://example.com"}'<?php
$acymailer = new AcyMailer\SendingService('your-license-key');
$domain = $acymailer->deleteDomain('example.com');import {AcyMailer} from '@acymailing/sending-service';
const mailer = new AcyMailer('your-license-key');
await mailer.deleteDomain({name: 'example.com'});POST /api/deleteDomainIdentity
Delete a domain registered on our API
Headers
Name
Value
Content-Type
application/json
API-KEY
<license-key>
Version
Must be "external"
Body
{
"domain": "example.com",
"siteUrl": "https://example.com"
}domain must your domain that you've registered
siteUrl must be the same value that you've added when you've registered the domain
Response
{
"code": 17,
"message": "Missing arguments"
}{
"error": "Invalid request"
}{
"code": 4,
"message": "You are not allowed to delete this domain"
}{
"code": 5,
"message": "This domain doesn't exist"
}
{
"code": 3,
"message": "This domain is not attached to this site"
}{
"code": 0,
"message": "<details>"
}Last updated