Get a domain
Retrieve one domain with its DNS records and verification state.
Returns the domain’s current DNS records (SPF, DKIM, DMARC, tracking), per-record verification state, and configuration.
GET /v3/domains/{name}
Responses
| Status | Description |
|---|---|
200 | OK. The domain object with its current verification state and DNS records. |
401 | Missing or invalid API key. |
404 | No such domain on your account. |
Code examples
cURL
curl https://api.wemail.io/v3/domains/{name} \
-H "Authorization: Bearer afn_live_…"Node.js
const res = await fetch("https://api.wemail.io/v3/domains/{name}", {
headers: {
Authorization: `Bearer ${process.env.WEMAIL_API_KEY}`,
},
});
const data = await res.json();Python
import os, requests
r = requests.get(
"https://api.wemail.io/v3/domains/{name}",
headers={"Authorization": f"Bearer {os.environ['WEMAIL_API_KEY']}"},
)
data = r.json()