Verify Domain
Once you have added the required DNS records to your provider, you can request a verification check.
import { createClient } from 'simpleemailapi';
const client = createClient({ apiKey: 'sea_live_...' });
const { domain } = await client.domains.verifyDomain({
id: 'dom_...'
});
if (domain.status === 3 /* READY */) {
console.log('Domain verified! Ready to send.');
} else {
console.log('Verification status:', domain.status);
}
DNS propagation can take a few minutes. We automatically re-check every few minutes, but you can force a check using this endpoint.