API Reference
Retrieve a domain
GET /domains/:id — fetch a single domain and its current DNS record statuses.
GET
/domains/:idRetrieves a single domain by id, including its current status and the records array (each with its own per-record status).
import { MailBlastr } from 'mailblastr';
const mb = new MailBlastr('mb_xxxxxxxxx');
const { data, error } = await mb.domains.get('d91a7c4e-1f2b-4a8c-9e3d-7b5f0a2c1d6e');
console.log({ data, error });Response:
{
"object": "domain",
"id": "d91a7c4e-1f2b-4a8c-9e3d-7b5f0a2c1d6e",
"name": "yourdomain.com",
"status": "verified",
"region": "us-east-1",
"created_at": "2026-06-23T12:00:00.000Z",
"custom_return_path": "send",
"open_tracking": false,
"click_tracking": false,
"tracking_subdomain": "links",
"tls": "opportunistic",
"capabilities": {
"sending": "enabled",
"receiving": "disabled"
},
"tracking_domain": "links.yourdomain.com",
"tracking_verified": true,
"records": [
{
"record": "DKIM",
"name": "mailblastr._domainkey.yourdomain.com",
"type": "TXT",
"ttl": "Auto",
"status": "verified",
"value": "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A..."
}
]
}Errors: not_found if the domain does not exist or is not yours. See Errors.