Domains

Get Domain

Retrieve detailed information about a specific domain, including DNS records and registrar detection.

GEThttps://graph.sendcorex.com/v3.0/domains/:domain

Path parameters

  • domainstringrequired

    The 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.domain

    The domain name.

  • domain.validated

    Whether the domain is verified and ready to send.

  • domain.hasMx

    The MX record was found.

  • domain.hasDkim

    The DKIM record was found.

  • domain.hasDmarc

    The DMARC record was found.

  • domain.hasPath

    The return-path record was found.

  • domain.hasSpf

    The SPF record was found.

  • domain.createdAt / updatedAt

    When the domain was added and last updated (ISO 8601, UTC).

  • domain.registrar

    The DNS provider detected for the domain, for example Cloudflare.

  • domain.dnsRecords

    The 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.spf

    TXT record that authorizes Sendcorex to send for your domain.

  • dnsRecords.dkim

    TXT record with the DKIM public key, generated for your domain.

  • dnsRecords.mx

    MX record. It points to bounce.emailsbit.com and is the one that lets you receive emails.

  • dnsRecords.returnPath

    CNAME record for the return path, used for bounces.

  • dnsRecords.dmarc

    TXT record with your DMARC policy and the address that receives reports.

i

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.

  • 401INVALID_API_KEY

    The API key is invalid or revoked.

  • 404DOMAIN_NOT_FOUND

    The domain does not exist or does not belong to your account.