Check a domain
POST /domain-checks
Answers whether sign-ups from a domain should be accepted: allow, block with the reason, or unknown when no answer could be had. Send exactly one of domain, or email with a whole address. Only the domain is used: the part of an address before its last @ is dropped as the request arrives, and is never stored, logged or passed on. An allow or block answer counts as one check against your team's monthly allowance; an unknown answer counts nothing.
Send a full access API key as a bearer token in the Authorization header. A sending access key is refused.
A JSON object.
| Field | Type | Required | Details |
|---|---|---|---|
domain |
string | No | At most 1024 characters. |
email |
string | No | At most 1024 characters. |
Status 200, a JSON object.
| Field | Type | Details |
|---|---|---|
object |
domain_check |
|
domain |
string | |
verdict |
string | One of allow, block, unknown. |
disposable |
boolean or null | |
reason |
string or null | One of disposable, invalid_domain, high_risk, operator_rule, unavailable. |
checked_at |
string or null | Matches ^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3}\+00$. |
Headers: x-request-id, ratelimit-limit, ratelimit-remaining, ratelimit-reset.
Each error answers with the status below and a JSON body naming the error. Every error has its own entry.
| Status | Names |
|---|---|
| 400 | validation_error |
| 401 | missing_api_key, validation_error, restricted_api_key |
| 403 | validation_error, restricted_api_key, suspended_api_key, terms_acceptance_required |
| 413 | validation_error |
| 415 | validation_error |
| 422 | validation_error |
| 429 | rate_limit_exceeded, domain_check_quota_exceeded |
Error headers: x-request-id, ratelimit-limit, ratelimit-remaining, ratelimit-reset, retry-after.
curl -X POST 'https://api.hermesmail.app/domain-checks' \
-H "Authorization: Bearer $HERMESMAIL_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"domain": "example.test"
}'