GET /api/v1/domains/{domainId}
One domain with its verification status and the DNS records to publish. A domainId belonging to
another organization answers 404, never 403.
Authorization
| Role in the organization | This endpoint |
|---|---|
OWNER | Allowed |
ADMIN | Allowed |
MEMBER | Allowed |
Path parameters
| Parameter | Type | Description |
|---|---|---|
domainId | string | Required. The domain to read |
Example
bash
curl -H "x-api-key: $AGENTMAIL_API_KEY" \
"https://www.agentsmail.io/api/v1/domains/$DOMAIN_ID"Response
200 OK— the call succeeded.401 Unauthorized— missing or invalid key, or its owner left the organization.404 Not Found— no such resource, or it belongs to another organization. The API never confirms that an id exists to a caller who has no right to it.429 Too Many Requests— over 120 requests in a minute for this key.
Response fields
| Field | Type | Description |
|---|---|---|
success | boolean | Indicates if the operation was successful |
data.id | string | Identifier of the declared domain |
data.domain | string | The domain itself |
data.dkimStatus | string | PENDING, SUCCESS or FAILED — the signing keys |
data.mailFromStatus | string \ | null |
data.mailFromDomain | string \ | null |
data.verified | boolean | The only question that decides sending: DKIM SUCCESS and ownership proved |
data.ownershipProved | boolean | Which of the two gestures is still missing |
data.lastCheckedAt | string \ | null |
data.sesUnavailable | boolean | true means you are reading the last known state, not the current truth |
data.dnsRecords | array | The records to publish — {type, name, value, purpose} |
Example response
json
{
"success": true,
"data": {
"id": "4d19c0a2",
"domain": "mail.example.com",
"dkimStatus": "SUCCESS",
"mailFromStatus": "SUCCESS",
"mailFromDomain": "bounce.mail.example.com",
"verified": true,
"ownershipProved": true,
"lastCheckedAt": "2026-08-23T10:22:05.000Z",
"sesUnavailable": true,
"dnsRecords": [
{
"type": "CNAME",
"name": "abc123._domainkey.mail.example.com",
"value": "abc123.dkim.amazonses.com",
"purpose": "dkim"
}
]
}
}