Domains
Delete Domain
Permanently delete a domain and all senders associated with it. This action cannot be undone.
DELETE
https://graph.sendcorex.com/v3.0/domains/:domain!
This is permanent. Every sender that belongs to the domain is deleted with it, and this cannot be undone.
Path parameters
domainstringrequiredThe domain name to delete.
e.g.
"sendcorex.com"
Quick start
import axios from 'axios';
const response = await axios.delete('https://graph.sendcorex.com/v3.0/domains/sendcorex.com', {
headers: { Authorization: process.env.SENDCOREX_API_KEY },
});
console.log(response.data);Response
{
"success": true,
"code": "DOMAIN_DELETED",
"domain": "sendcorex.com",
"responseTime": "156ms"
}Response fields
codeDOMAIN_DELETEDwhen the domain was removed.domainThe domain that was deleted.
Errors
HTTP-level errors return type, code and message. Errors marked CMD come back inside the command result, with HTTP 200.
- 401
INVALID_API_KEYThe API key is invalid or revoked.
- 404
DOMAIN_NOT_FOUNDThe domain does not exist or does not belong to your account.