PlatformXeDocs
Get API Key

Manage Domains

List, get, and delete your organisation's sending domains.

List the sending domains you have registered, read one domain's status and DNS records, and remove a domain you no longer send from. To register and verify a domain, see Add a Domain.

Scope: domains:manage (every route on this page)

Rate limit: 1,000/hr

Every route needs a key of your organisation: a platform key with no organisation is refused with 403 FORBIDDEN ("API key must be associated with an organization").

The domain object

FieldTypeDescription
idstringThe domain's id
organizationIdstringYour organisation
domainstringThe domain or subdomain (lower-case)
statusstringPENDING, DNS_CONFIGURED, VERIFIED or FAILED
dnsRecordsarray | nullThe records to publish: each type (TXT, CNAME, MX), name, value, priority (MX only) and verified
fromNamestring | nullThe default sender name, when one was set at registration
verifiedAtstring | nullWhen the domain was verified
createdAtstringWhen the domain was registered

The object also carries two internal routing fields, provider and providerDomainId. They are PlatformXe's own and may change without notice: do not depend on them.

List domains

GET /api/v1/domains

Returns every sending domain of your organisation (no paging).

curl https://api.platformxe.com/api/v1/domains \
  -H "x-api-key: pxk_live_your_api_key_here"
const { domains } = await client.domains.list();

Response

{
  "success": true,
  "data": {
    "domains": [
      {
        "id": "d4f8h2j6l0n3p7r1t5v9x2zc",
        "organizationId": "org_123",
        "domain": "mail.yourcompany.com",
        "status": "VERIFIED",
        "dnsRecords": [
          { "type": "TXT", "name": "mail.yourcompany.com", "value": "v=spf1 …", "verified": true }
        ],
        "fromName": "Your Company",
        "verifiedAt": "2026-11-20T15:00:00.000Z",
        "createdAt": "2026-11-20T14:30:00.000Z"
      }
    ]
  }
}

Get a domain

GET /api/v1/domains/{id}

Returns one domain (the object above). Use it to read the DNS records again or to check status after you publish them.

curl https://api.platformxe.com/api/v1/domains/d4f8h2j6l0n3p7r1t5v9x2zc \
  -H "x-api-key: pxk_live_your_api_key_here"
const domain = await client.domains.get('d4f8h2j6l0n3p7r1t5v9x2zc');

Delete a domain

DELETE /api/v1/domains/{id}

Removes the domain from PlatformXe and from the delivery infrastructure behind it. Email can no longer be sent from it; to use it again, register it again.

curl -X DELETE https://api.platformxe.com/api/v1/domains/d4f8h2j6l0n3p7r1t5v9x2zc \
  -H "x-api-key: pxk_live_your_api_key_here"
await client.domains.delete('d4f8h2j6l0n3p7r1t5v9x2zc');
{ "success": true, "data": { "deleted": true } }

Error responses

CodeStatusDescription
FORBIDDEN403API key missing domains:manage; a key with no organisation; or (get, delete) the domain is another organisation's
NOT_FOUND404No domain has that id
PROVIDER_ERROR502Delete only: the domain could not be deleted. PlatformXe removes the domain from the delivery side first and its record second, so the domain may already be gone from the delivery side. Retry, and contact support if it keeps failing