JavaScript
import Migma from 'migma'; const migma = new Migma('YOUR_API_KEY'); const { data, error } = await migma.domains.remove('mail.yourbrand.com');
{ "success": true, "data": { "id": "<string>", "deleted": true }, "error": "<string>" }
Delete a sending domain. Requires API key with DOMAIN_WRITE.
API key authentication. Use 'Authorization: Bearer YOUR_API_KEY' where YOUR_API_KEY is obtained from the Migma dashboard under Settings → API Integration.
Domain name
Domain deleted
Show child attributes
Was this page helpful?