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
| Field | Type | Description |
|---|---|---|
id | string | The domain's id |
organizationId | string | Your organisation |
domain | string | The domain or subdomain (lower-case) |
status | string | PENDING, DNS_CONFIGURED, VERIFIED or FAILED |
dnsRecords | array | null | The records to publish: each type (TXT, CNAME, MX), name, value, priority (MX only) and verified |
fromName | string | null | The default sender name, when one was set at registration |
verifiedAt | string | null | When the domain was verified |
createdAt | string | When 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
| Code | Status | Description |
|---|---|---|
FORBIDDEN | 403 | API key missing domains:manage; a key with no organisation; or (get, delete) the domain is another organisation's |
NOT_FOUND | 404 | No domain has that id |
PROVIDER_ERROR | 502 | Delete 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 |