Skip to main content

Get Domain

Retrieve a sending domain with its DNS records and their status as of the last check.

This endpoint does not look the records up again. To check them now, call Verify Domain.

Endpoint​

GET /email/domains/:id

Returns: 200 OK

Headers​

HeaderValueRequired
AuthorizationBearer <your-api-key>Yes

Path Parameters​

ParameterTypeDescription
idstringThe domain ID

Response​

{
"id": "01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a",
"name": "mail.acme.com",
"status": "verified",
"verified_at": "2026-03-08T12:20:00.000Z",
"created_at": "2026-03-08T12:00:00.000Z",
"records": [
{
"type": "CNAME",
"name": "4hbfxq3v2nkd6wz5ymtj7ra2ue3lc5po._domainkey.mail.acme.com",
"value": "4hbfxq3v2nkd6wz5ymtj7ra2ue3lc5po.dkim.amazonses.com",
"purpose": "dkim",
"required": true,
"status": "verified"
},
{
"type": "CNAME",
"name": "s7kq2mwx9pzr4tbv6ny3hd8cgj5fa2le._domainkey.mail.acme.com",
"value": "s7kq2mwx9pzr4tbv6ny3hd8cgj5fa2le.dkim.amazonses.com",
"purpose": "dkim",
"required": true,
"status": "verified"
},
{
"type": "CNAME",
"name": "zt5c8rjd2wqy7mhn4xkb9vp3ga6fe2us._domainkey.mail.acme.com",
"value": "zt5c8rjd2wqy7mhn4xkb9vp3ga6fe2us.dkim.amazonses.com",
"purpose": "dkim",
"required": true,
"status": "verified"
},
{
"type": "TXT",
"name": "mail.acme.com",
"value": "v=spf1 include:amazonses.com ~all",
"purpose": "spf",
"required": false,
"status": "verified"
},
{
"type": "TXT",
"name": "_dmarc.mail.acme.com",
"value": "v=DMARC1; p=none;",
"purpose": "dmarc",
"required": false,
"status": "pending"
}
]
}

A domain is verified once its required records are found, so a verified domain can still list a recommended record as pending.

Domain fields​

FieldTypeDescription
idstringThe domain ID
namestringThe domain name
statusstringpending, verified or failed. Only a verified domain can send.
verified_atstring | nullWhen the domain was verified (ISO 8601)
created_atstringWhen the domain was added (ISO 8601)
recordsarrayThe DNS records to publish at the domain's DNS provider

Record fields​

FieldTypeDescription
typestringDNS record type, e.g. CNAME or TXT
namestringThe record's host name, fully qualified. Some DNS providers want only the part before your domain.
valuestringThe record's value
purposestringdkim, spf, dmarc or mail_from
requiredbooleanThe domain cannot become verified until every required record is published. The others are recommended for deliverability.
statusstringpending or verified, as of the last check

Examples​

curl "https://api.arsel.sa/v1/email/domains/01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a" \
-H "Authorization: Bearer $ARSEL_API_KEY"

Error Responses​

{
"status_code": 404,
"name": "not_found",
"message": "Domain not found"
}