Claiming a domain
Take over a domain that another account has already verified by proving DNS control through the claim flow.
When you try to add a domain that another account has already verified, MailBlastr blocks the creation and tells you the domain can be claimed. Claiming lets you prove control of the domain over DNS and transfer it to your account — entirely over the API.
How it works
- 1Start a claim
Call Claim domain with the domain name. MailBlastr creates a placeholder domain on your account and returns a
domain_claimcontaining a TXTrecordto add to your DNS. - 2Add the TXT record
Publish the returned TXT record at your DNS provider. It proves you control the domain.
- 3Verify the claim
Call Verify domain claim. MailBlastr checks the TXT record and, once it resolves, transfers the domain to your account.
- 4Track the status
Poll Get domain claim until the claim reaches
completed.
Claim statuses
| Status | Meaning |
|---|---|
pending | Waiting for DNS verification. |
verified | DNS proof accepted; the transfer is in progress. |
completed | The domain now belongs to your account. |
failed | The claim could not be completed. |
expired | The claim window passed before it completed. |
Start a claim
import { MailBlastr } from 'mailblastr';
const mb = new MailBlastr('mb_xxxxxxxxx');
const { data, error } = await mb.domains.claim({ "name": "example.com" });
console.log({ data, error });Canceling a claim
Cancel a pending claim by deleting its placeholder domain with Delete domain, using the domain_id from the domain_claim object.