Domains
Get Domain
Retrieve detailed information about a specific domain, including DNS records and registrar detection.
https://graph.sendcorex.com/v3.0/domains/:domainPath parameters
domainstringrequiredThe domain name.
e.g.
"sendcorex.com"
Quick start
import axios from 'axios';
const response = await axios.get('https://graph.sendcorex.com/v3.0/domains/sendcorex.com', {
headers: { Authorization: process.env.SENDCOREX_API_KEY },
});
console.log(response.data);Response
{
"success": true,
"domain": {
"domain": "sendcorex.com",
"validated": true,
"hasMx": true,
"hasDkim": true,
"hasDmarc": true,
"hasPath": true,
"hasSpf": true,
"createdAt": "2026-03-01T10:00:00.000Z",
"updatedAt": "2026-06-01T10:00:00.000Z",
"registrar": "Cloudflare",
"dnsRecords": {
"spf": {
"host": "sendcorex.com",
"value": "v=spf1 include:smtp.emailsbit.com ~all",
"type": "TXT"
},
"dkim": {
"host": "selector._domainkey.sendcorex.com",
"value": "v=DKIM1; k=rsa; p=...",
"type": "TXT"
},
"mx": {
"host": "sendcorex.com",
"value": "bounce.emailsbit.com",
"type": "MX",
"priority": 0
},
"returnPath": {
"host": "bounces.sendcorex.com",
"value": "bounce.emailsbit.com",
"type": "CNAME"
},
"dmarc": {
"host": "_dmarc.sendcorex.com",
"value": "v=DMARC1; p=quarantine; rua=mailto:dmarc@bounces.sendcorex.com",
"type": "TXT"
}
}
},
"responseTime": "612ms"
}Response fields
domain.domainThe domain name.
domain.validatedWhether the domain is verified and ready to send.
domain.hasMxThe MX record was found.
domain.hasDkimThe DKIM record was found.
domain.hasDmarcThe DMARC record was found.
domain.hasPathThe return-path record was found.
domain.hasSpfThe SPF record was found.
domain.createdAt / updatedAtWhen the domain was added and last updated (ISO 8601, UTC).
domain.registrarThe DNS provider detected for the domain, for example
Cloudflare.domain.dnsRecordsThe records to add at your DNS provider. See below.
DNS records
Add these records at your DNS provider. The has* flags tell you which ones were found.
dnsRecords.spfTXT record that authorizes Sendcorex to send for your domain.
dnsRecords.dkimTXT record with the DKIM public key, generated for your domain.
dnsRecords.mxMX record. It points to
bounce.emailsbit.comand is the one that lets you receive emails.dnsRecords.returnPathCNAME record for the return path, used for bounces.
dnsRecords.dmarcTXT record with your DMARC policy and the address that receives reports.
Each record has host, value and type. The MX record also has priority.
Errors
HTTP-level errors return type, code and message. Errors marked CMD come back inside the command result, with HTTP 200.
- 401
INVALID_API_KEYThe API key is invalid or revoked.
- 404
DOMAIN_NOT_FOUNDThe domain does not exist or does not belong to your account.