Delete a domain
Remove a sending domain.
DELETE
https://app.usenotix.dev/api/v1/domains/{id}Needs a full access key. Sending access keys cannot call this. Key permissions lists the extra rules some calls have.
Remove a sending domain. Mail can no longer be sent from it.
Path parameters
idnumberrequired
Headers
Authorizationstringrequired
Bearer followed by your API key.
Errors
403
Forbidden - API key doesn't have access
404
Domain not found
409
The domain is paused for its sending reputation, or was warned in the last 7 days, and cannot be deleted. Contact support.
Every error has the same shape. See all error codes.
curl -X DELETE "https://app.usenotix.dev/api/v1/domains/<id>" \
-H "Authorization: Bearer $NOTIX_API_KEY"
import { Notix } from "notix-js";
const notix = new Notix(process.env.NOTIX_API_KEY);
const { data, error } = await notix.domains.delete(12);
from notix import Notix
notix = Notix() # reads NOTIX_API_KEY
result, _ = notix.domains.delete(12)
use Notix\Notix;
$notix = new Notix(getenv('NOTIX_API_KEY'));
$result = $notix->domains->delete(12);
Response200
{
"id": 1,
"success": true,
"message": "string"
}