Domains
More ways to use this page
Read a sending domain
GET/v1/
TypeScript account
Python account
PHP $account->domains->get(
Java account
Key ak_… an account key
Parameters
idin pathstring (uuid)requiredThe domain id.
Responses
Every field of a response is always present. A field that can be null says so in its type.
200A sending domain and the two records it needs.
Example
{
"domainId": "0d7f6a1e-4c0b-4b7e-9d3c-2a1f5e8b9c01",
"domain": "example.se",
"verified": false,
"createdAt": "2026-09-15T12:00:00.000Z",
"lastCheckedAt": null,
"failingSince": null,
"returnPath": {
"type": "CNAME",
"host": "sendora-bounces.example.se",
"value": "bounces.sendora.se",
"verified": false,
"verifiedAt": null
},
"dkim": {
"type": "TXT",
"host": "s1._domainkey.example.se",
"value": "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...",
"verified": false,
"verifiedAt": null
}
}domainIdstring (uuid)domainstringverifiedbooleanTrue while both records count as found; only then may mail go out. A lookup that fails at the resolver never changes it, and a record found missing on a verified domain starts a 24-hour warning (failingSince) through which the domain stays verified.
createdAtstring (date-time)lastCheckedAtstring (date-time) or nullWhen the records were last looked up.
failingSincestring (date-time) or nullWhen a check first found a record of this verified domain missing or wrong. Mail keeps going out, the records are looked up hourly, and the first check 24 hours after this that still misses one ends the verification. Null unless the domain is verified and in that warning; verified and each record tell the rest.
returnPathobjectThe return-path record, which also satisfies SPF.
type"CNAME"hoststringThe name to create the record under.
valuestringThe value the record must hold.
verifiedbooleanverifiedAtstring (date-time) or null
dkimobjectThe DKIM public key record.
type"TXT"hoststringThe name to create the record under.
valuestringThe value the record must hold.
verifiedbooleanverifiedAtstring (date-time) or null
Errors
Every error answers error, the code, and message, a sentence for a person. A code that adds fields is shown in full below the table.
| Code | Status | Meaning |
|---|---|---|
unauthorized | 401 | The key is missing, malformed or revoked. |
wrong_ | 403 | The key is of the other kind: a server key (sk_) where an account key (ak_) is needed, or the reverse. The message names the kind the operation takes. |
not_ | 403 | A connected app called an operation that no tool of the MCP server calls. An API key can. |
read_ | 403 | A connected app may only read here: the account is read only through a connection, and a live server takes changes only if the person allowed them when connecting. |
test_ | 403 | A connected app may create a secret, or do what cannot be undone, on a test server only. |
not_ | 404 | No such domain of this account. |
WWW-Authenticateheader on 401"Bearer"Always Bearer: send the key as Authorization: Bearer <key>.