Domains
Scope: domains:manage. See Domains for what the records do.
The domain object
Section titled “The domain object”{ "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"}Create a domain
Section titled “Create a domain”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)domain = mailpidge.domains.create(name="pidgefit.com")print(domain.records)curl https://api.mailpidge.com/api/v1/domains \ -H "Authorization: Bearer $MAILPIDGE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "pidgefit.com" }'Returns the domain object. 409 domain_claimed if another workspace verified it.
Verify a domain
Section titled “Verify a domain”POST /api/v1/domains/{id}/verify checks the DNS records now instead of waiting for the next automatic check. Returns the domain object.
List domains
Section titled “List domains”GET /api/v1/domains returns { "domains": [domain, …] }.
Get a domain
Section titled “Get a domain”GET /api/v1/domains/{id}
Update a domain
Section titled “Update a domain”PATCH /api/v1/domains/{id} with { "tlsMode": "enforced" }.
Delete a domain
Section titled “Delete a domain”DELETE /api/v1/domains/{id} returns 204. Scheduled emails from the domain fail.