Skip to content
PreviewNot live yet. APIs and SDKs on these pages may change before launch.

Domains

Scope: domains:manage. See Domains for what the records do.

{
"id": "dom_7c2k",
"name": "pidgefit.com",
"status": "pending",
"tlsMode": "opportunistic",
"records": [
{ "type": "CNAME", "name": "abc123._domainkey", "value": "abc123.dkim.amazonses.com", "status": "pending" },
{ "type": "MX", "name": "bounce", "value": "10 feedback-smtp.us-east-1.amazonses.com", "status": "pending" },
{ "type": "TXT", "name": "bounce", "value": "v=spf1 include:amazonses.com ~all", "status": "pending" }
],
"createdAt": "2026-11-25T09:00:00.000Z"
}

POST /api/v1/domains

Field Type Notes
name string Required. Lowercased; no scheme or path
tlsMode string opportunistic (default) or enforced
const domain = await mailpidge.domains.create({ name: 'pidgefit.com' })
console.log(domain.records)

Returns the domain object. 409 domain_claimed if another workspace verified it.

POST /api/v1/domains/{id}/verify checks the DNS records now instead of waiting for the next automatic check. Returns the domain object.

GET /api/v1/domains returns { "domains": [domain, …] }.

GET /api/v1/domains/{id}

PATCH /api/v1/domains/{id} with { "tlsMode": "enforced" }.

DELETE /api/v1/domains/{id} returns 204. Scheduled emails from the domain fail.