Skip to main content
ScrubiMail

Validation API

Check whether an address is real before you send to it. Validate one address in real time, or queue a whole list and poll for progress. Every result carries a verdict, a 0 to 100 score and the reason behind them.

Related:Email validationSignup verificationList cleaning

Checked against the API source on

How a check works

Each address goes through the same pipeline: syntax (RFC 5322 with international domain support and typo suggestions), DNS and MX lookup, a domain reputation check (disposable domains, risky top-level domains, known spam traps), role-address detection, and, in deep mode, an SMTP conversation with the recipient's mail server to ask whether the mailbox exists and whether the domain accepts every address (catch-all).

Deep and fast mode
AspectDeep (default)Fast (mode=fast)
ChecksSyntax, DNS, reputation, role, SMTP mailbox check, catch-allSyntax, DNS, reputation, role. No SMTP.
Typical timeTypically 2 to 8 seconds.Well under a second.
Can return validYesNo. A clean address is Unknown with sub_status no_smtp_check.
CachedRepeat lookups can return faster with cached: true.No.
Credits11

A repeat deep lookup of the same address can be answered from an earlier result (cached: true). Temporary outcomes such as timeout, rate_limited and smtp_unavailable are not reused, so the next call tries again.

Single validation

Validate one address

POST/validate/
Scope: validate1 validation credit

Checks a single address and returns a verdict, a 0 to 100 score and the evidence behind them. The default is a deep check that includes a live SMTP mailbox check. Add ?mode=fast to skip it.

Deep checks usually take 2 to 8 seconds. If the mailbox server has not answered in time you get an honest unknown with sub_status smtp_unavailable, never a made-up valid. Retrying the same address shortly afterwards usually succeeds, and a repeat lookup can return faster with cached: true.

Fast checks (syntax, DNS and list checks only) return in well under a second. Because no mailbox check runs, a clean address comes back as Unknown with sub_status no_smtp_check and is_valid: false. Use fast mode to catch typos, dead domains, disposable and role addresses while a user types, and deep mode when you need a yes or no.

Every call costs 1 credit, including fast and cached lookups.

Body

Validate one address: Body
NameTypeRequiredDescription
emailstringYesThe address to check. A malformed value is rejected with 400.

Query string

Validate one address: Query string
NameTypeRequiredDescription
modestringNofast skips the SMTP mailbox check. Any other value, or none, runs a deep check. deep=false is accepted as an alias for mode=fast.
detailsbooleanNotrue adds breakdown and metadata to the response. Default false.

Request

curl -X POST "https://api.scrubimail.com/scrubimail/api/v1/validate/" \
  -H "X-API-Key: $SCRUBIMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "email": "[email protected]"
}'

Response

200 OK
{
  "id": "9fa54b0c-ccf6-43a5-8706-522dc42c5e52",
  "email": "[email protected]",
  "status": "completed",
  "score": 96,
  "verdict": "Valid",
  "is_valid": true,
  "verification_status": "valid",
  "sub_status": "mailbox_exists",
  "mode": "deep",
  "cached": false,
  "verified_at": "2026-11-16T09:12:04Z",
  "suggestions": [],
  "warnings": [],
  "validation_time": 2.13,
  "request_time": 2.27
}

Errors

Validate one address: errors
StatusCodeWhen
400validation_erroremail is missing or not a valid address.
402insufficient_creditsNo validation credits left.
401authentication_requiredNo API key was sent. The response carries a WWW-Authenticate header.
401invalid_credentialsThe key is unknown, inactive, expired, or the request IP is not on the key's allow-list. The response carries a WWW-Authenticate header.
403permission_deniedThe key has scopes set and validate is not one of them.
429rate_limit_exceededYour plan's hourly request limit is used up. Wait the number of seconds in the Retry-After header (also error.meta.retry_after).

Response fields

Fields of a validate response
FieldDescription
idUUID of this validation. Use it with /status/{id}/.
emailThe address you sent.
statusState of the request: completed. This is not the verdict.
scoreInteger 0 to 100. Higher is safer. See the score bands below.
verdictHuman label: Valid, Invalid, Catch-All, Unknown or Do Not Mail.
is_validtrue only when the mailbox was confirmed by SMTP (verdict Valid). false for everything else, including Unknown.
verification_statusMachine-friendly verdict: valid, invalid, catch_all, unknown, do_not_mail.
sub_statusThe specific reason. See the sub-status tables.
modedeep or fast: the mode that produced this result.
cachedtrue when the result is a repeat of an earlier check.
verified_atISO 8601 time the address was verified. For a cached result this is when it was originally checked.
suggestionsTypo corrections, for example [email protected] for [email protected]. Empty when there is nothing to suggest.
warningsPlain-English flags, for example a disposable domain or a catch-all domain.
validation_timeSeconds the verification itself took. Replayed from the original check on a cache hit.
request_timeSeconds the request spent on our servers, end to end.
timingOptional. Latency measurements in milliseconds, for diagnostics only. Do not build logic on its contents.
breakdown, metadataOnly with ?details=true. The per-check evidence, below.

Verdicts and scores

The verdict is decided by the evidence, not by the score alone, and the score always matches it. An address we could not verify is never reported as Valid.

Verdict values
verification_statusverdictis_validscoreMeaning
validValidtrue90 to 100The mail server confirmed the mailbox exists, and the domain is not catch-all.
invalidInvalidfalse0 to 20Bad syntax, a domain with no DNS, a domain that refuses mail (null MX), or a mailbox the server says does not exist.
catch_allCatch-Allfalse40 to 70The domain accepts every address, so this specific mailbox cannot be confirmed.
unknownUnknownfalse0 to 70We could not verify the mailbox: no mailbox check (fast mode), greylisting, a timeout, or the receiving server declined the check.
do_not_mailDo Not Mailfalse0 to 50A known spam trap, a disposable domain or a role address such as info@ or admin@. Do not send marketing mail to it.

In the rare event of an internal failure the verdict is Error, with unknown and exception_occurred, score 0 and a warning. The credit for that call is still spent, so treat it as a retryable fault.

Sub-status values

sub_status explains the verdict. These are all the values the API returns.

sub_status values by verdict
verification_statussub_statusWhat happened
validmailbox_existsThe server accepted the recipient during the SMTP conversation.
invalidbad_syntaxThe address is not a valid email address (format or length).
invalidpossible_typoThe syntax is invalid and we found a likely correction. See suggestions.
invalidno_dns_entriesThe domain has no MX or address records, so mail cannot be delivered.
invaliddoes_not_accept_mailThe domain publishes a null MX (RFC 7505): it says it accepts no mail.
invalidmailbox_not_foundThe mail server rejected the mailbox as unknown.
catch_allaccept_allThe server accepts mail for any local part.
do_not_mailspamtrap_detectedThe domain is on our spam-trap list.
do_not_maildisposableA temporary or throwaway email domain.
do_not_mailrole_basedA role address such as support@ or sales@, not a person.
unknownno_smtp_checkNo mailbox check ran: you used mode=fast.
unknownno_mx_recordThe domain has no MX host to check.
unknowngreylistedThe server asked us to try again later (SMTP 450).
unknownantispam_blockThe server refused the check for policy or anti-spam reasons, which does not prove the mailbox is missing.
unknownunexpected_responseThe server answered with a code we could not classify.
unknownfailed_smtp_connectionWe could not connect to any of the domain's mail servers.
unknownsmtp_egress_blockedMailbox checks are temporarily unavailable from our side. Try again later.
unknownrate_limitedChecks to that mail provider are being paced. Try again shortly.
unknowntimeoutThe mailbox did not answer in time.
unknownsmtp_unavailableThe mailbox check could not finish in time. The same call a moment later usually succeeds.

Evidence with details=true

?details=true adds breakdown (one object per check plus the final risk_score) and metadata. The fields differ a little between checks that ran and checks that were skipped, so read them defensively.

Response with ?details=true
{
  "id": "9fa54b0c-ccf6-43a5-8706-522dc42c5e52",
  "email": "[email protected]",
  "status": "completed",
  "score": 96,
  "verdict": "Valid",
  "is_valid": true,
  "verification_status": "valid",
  "sub_status": "mailbox_exists",
  "mode": "deep",
  "cached": false,
  "verified_at": "2026-11-16T09:12:04Z",
  "suggestions": [],
  "warnings": [],
  "validation_time": 2.13,
  "request_time": 2.27,
  "breakdown": {
    "syntax": {
      "valid": true,
      "local_part": "user",
      "domain": "example.com",
      "unicode_domain": null,
      "suggestions": []
    },
    "dns": {
      "valid": true,
      "mx_records": [
        {
          "host": "mx.example.com",
          "preference": 10,
          "score": 50
        }
      ],
      "a_records": [
        "203.0.113.10"
      ],
      "null_mx": false,
      "dnssec_valid": false,
      "score": 66
    },
    "smtp": {
      "valid": true,
      "status": "deliverable",
      "sub_status": "mailbox_exists",
      "catch_all": false,
      "greylisting": false
    },
    "reputation": {
      "is_disposable": false,
      "tld_risk": false,
      "is_free_provider": false,
      "is_spam_trap": false,
      "spam_trap_risk": 0,
      "reputation_score": 100,
      "risk_level": "low"
    },
    "role_based": {
      "is_role_based": false,
      "detected_roles": [],
      "has_plus_alias": false,
      "role_score": 0,
      "risk_level": "low"
    },
    "risk_score": {
      "score": 96,
      "verdict": "Valid",
      "is_valid": true
    }
  },
  "metadata": {
    "validation_time": 2.13,
    "status": "valid",
    "sub_status": "mailbox_exists",
    "verified_at": "2026-11-16T09:12:04Z"
  }
}

Bulk validation

For lists, queue a job and poll it. Bulk runs deep checks in the background and stores one result per address.

Validate a list

POST/validate-bulk/
Scope: validate:bulk1 validation credit per address

Queues a background job that deep-checks every address in the list. The call returns 202 straight away with a job_id; poll the status endpoint for progress.

Credits are not taken up front. The request only checks that your balance covers the whole list, then the job spends 1 credit per address as it processes each one. Per-address results are stored like any other validation, so they show up in history and in the dashboard.

Bulk validation needs a plan that includes it. On a plan without bulk support the call is refused with 429 and no retry time. A list longer than your plan allows per request is refused with an error that states the limit and the number of addresses you requested, so trim the list or split it into several requests.

Body

Validate a list: Body
NameTypeRequiredDescription
emailsstring[]Yes1 to 10,000 addresses per request, and never more than your plan's per-request bulk limit. Every entry must be a valid email address, or the whole request is rejected with 400.

Request

curl -X POST "https://api.scrubimail.com/scrubimail/api/v1/validate-bulk/" \
  -H "X-API-Key: $SCRUBIMAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "emails": [
    "[email protected]",
    "[email protected]",
    "[email protected]"
  ]
}'

Response

202 Accepted
{
  "job_id": "5d1c2e0a-7f43-4b8e-9a61-2c8f0b7d9e34",
  "total_emails": 3,
  "status": "pending",
  "message": "Bulk validation job accepted and queued for processing.",
  "status_url": "https://api.scrubimail.com/scrubimail/api/v1/bulk-status/5d1c2e0a-7f43-4b8e-9a61-2c8f0b7d9e34/"
}

Errors

Validate a list: errors
StatusCodeWhen
400validation_erroremails is empty, has more than 10,000 entries, or contains an invalid address.
402insufficient_creditsBalance is lower than the number of addresses. The message says how many you need and how many you have.
429rate_limit_exceededThe list is longer than your plan allows in one request. The message states both numbers, and error.meta.limit and error.meta.requested carry them. There is no retry time: split the list or upgrade.
429rate_limit_exceededYour plan does not include bulk validation. The message is the generic "Request was throttled." and there is no retry time, so check your plan rather than waiting.
401authentication_requiredNo API key was sent. The response carries a WWW-Authenticate header.
401invalid_credentialsThe key is unknown, inactive, expired, or the request IP is not on the key's allow-list. The response carries a WWW-Authenticate header.
403permission_deniedThe key has scopes set and validate:bulk is not one of them.

Check a bulk job

GET/bulk-status/{job_id}/
Scope: validate:bulk

Progress and a summary for one bulk job. Poll every few seconds until status is completed or failed.

status is one of pending, processing, completed and failed. progress is a whole number from 0 to 100. The summary buckets count by score, not verdict: valid_emails is score 80 or more, risky_emails is 50 to 79 and invalid_emails is below 50.

Path

Check a bulk job: Path
NameTypeRequiredDescription
job_idUUIDYesThe job_id returned when the job was queued.

Request

curl -X GET "https://api.scrubimail.com/scrubimail/api/v1/bulk-status/5d1c2e0a-7f43-4b8e-9a61-2c8f0b7d9e34/" \
  -H "X-API-Key: $SCRUBIMAIL_API_KEY"

Response

200 OK
{
  "job_id": "5d1c2e0a-7f43-4b8e-9a61-2c8f0b7d9e34",
  "status": "processing",
  "progress": 67,
  "total_emails": 3,
  "total_processed": 2,
  "summary": {
    "total_validations": 2,
    "completed_validations": 2,
    "valid_emails": 1,
    "invalid_emails": 0,
    "risky_emails": 1,
    "avg_score": 72.5
  },
  "created_at": "2026-11-16T09:15:00Z",
  "updated_at": "2026-11-16T09:15:11Z"
}

Errors

Check a bulk job: errors
StatusCodeWhen
404not_foundNo job with that id on your account.
401authentication_requiredNo API key was sent. The response carries a WWW-Authenticate header.
401invalid_credentialsThe key is unknown, inactive, expired, or the request IP is not on the key's allow-list. The response carries a WWW-Authenticate header.
403permission_deniedThe key has scopes set and validate:bulk is not one of them.
const base = "https://api.scrubimail.com/scrubimail/api/v1";
const headers = { "X-API-Key": process.env.SCRUBIMAIL_API_KEY, "Content-Type": "application/json" };

const queued = await fetch(`${base}/validate-bulk/`, {
  method: "POST",
  headers,
  body: JSON.stringify({ emails }),
}).then((r) => r.json());

let job;
do {
  await new Promise((r) => setTimeout(r, 3000));
  job = await fetch(`${base}/bulk-status/${queued.job_id}/`, { headers }).then((r) => r.json());
} while (job.status === "pending" || job.status === "processing");

console.log(job.status, job.summary);

History and lookups

Get one validation

GET/status/{validation_id}/
Scope: history

Looks up a past single validation by the id it returned. Add ?details=true for breakdown and metadata.

Path

Get one validation: Path
NameTypeRequiredDescription
validation_idUUIDYesThe id from a validate response or a history row.

Request

curl -X GET "https://api.scrubimail.com/scrubimail/api/v1/status/9fa54b0c-ccf6-43a5-8706-522dc42c5e52/" \
  -H "X-API-Key: $SCRUBIMAIL_API_KEY"

Response

200 OK
{
  "id": "9fa54b0c-ccf6-43a5-8706-522dc42c5e52",
  "email": "[email protected]",
  "status": "completed",
  "score": 96,
  "verdict": "Valid",
  "is_valid": true,
  "suggestions": [],
  "warnings": [],
  "validation_time": 2.13,
  "created_at": "2026-11-16T09:12:04Z",
  "updated_at": "2026-11-16T09:12:04Z"
}

Errors

Get one validation: errors
StatusCodeWhen
404not_foundNo validation with that id on your account.
401authentication_requiredNo API key was sent. The response carries a WWW-Authenticate header.
401invalid_credentialsThe key is unknown, inactive, expired, or the request IP is not on the key's allow-list. The response carries a WWW-Authenticate header.
403permission_deniedThe key has scopes set and history is not one of them.

Delete one validation

DELETE/status/{validation_id}/
Scope: history

Removes a validation from your history. Billing records are kept, so deleting history never changes what you were charged.

Path

Delete one validation: Path
NameTypeRequiredDescription
validation_idUUIDYesThe validation to delete.

Request

curl -X DELETE "https://api.scrubimail.com/scrubimail/api/v1/status/9fa54b0c-ccf6-43a5-8706-522dc42c5e52/" \
  -H "X-API-Key: $SCRUBIMAIL_API_KEY"

Response

204 No Content, empty body

Errors

Delete one validation: errors
StatusCodeWhen
404not_foundNo validation with that id on your account.
401authentication_requiredNo API key was sent. The response carries a WWW-Authenticate header.
401invalid_credentialsThe key is unknown, inactive, expired, or the request IP is not on the key's allow-list. The response carries a WWW-Authenticate header.
403permission_deniedThe key has scopes set and history is not one of them.

List past validations

GET/history/
Scope: history

Your validations, newest first, with a summary of the filtered set. The response is not paginated: it returns every match, so use the date and score filters on large accounts.

Needs the history scope when the key has scopes set. DELETE /history/ clears the history. It deletes exactly the set a GET with the same filters would list, so with no filters it deletes everything. It replies 200 with {"deleted": <count>}. Billing records are untouched.

Query string

List past validations: Query string
NameTypeRequiredDescription
statusstringNoRecord state: pending, processing, completed or failed.
date_fromdateNoYYYY-MM-DD. Validations created on or after this day.
date_todateNoYYYY-MM-DD. Validations created on or before this day.
min_scoreintegerNoLowest score to include.
max_scoreintegerNoHighest score to include.
detailsbooleanNotrue adds breakdown and metadata to every row.

Request

curl -X GET "https://api.scrubimail.com/scrubimail/api/v1/history/?date_from=2026-11-01&min_score=90" \
  -H "X-API-Key: $SCRUBIMAIL_API_KEY"

Response

200 OK
{
  "results": [
    {
      "id": "9fa54b0c-ccf6-43a5-8706-522dc42c5e52",
      "email": "[email protected]",
      "status": "completed",
      "score": 96,
      "verdict": "Valid",
      "is_valid": true,
      "suggestions": [],
      "warnings": [],
      "validation_time": 2.13,
      "created_at": "2026-11-16T09:12:04Z",
      "updated_at": "2026-11-16T09:12:04Z"
    }
  ],
  "summary": {
    "total_validations": 1,
    "completed_validations": 1,
    "valid_emails": 1,
    "invalid_emails": 0,
    "risky_emails": 0,
    "avg_score": 96
  }
}

Errors

List past validations: errors
StatusCodeWhen
401authentication_requiredNo API key was sent. The response carries a WWW-Authenticate header.
401invalid_credentialsThe key is unknown, inactive, expired, or the request IP is not on the key's allow-list. The response carries a WWW-Authenticate header.
403permission_deniedThe key has scopes set and history is not one of them.

Validation analytics

GET/analytics/
Scope: history

Daily counts, an overall summary and your ten most-checked domains for a period ending today.

Query string

Validation analytics: Query string
NameTypeRequiredDescription
daysintegerNoLength of the period in days. Default 30. Must be a whole number.

Request

curl -X GET "https://api.scrubimail.com/scrubimail/api/v1/analytics/?days=7" \
  -H "X-API-Key: $SCRUBIMAIL_API_KEY"

Response

200 OK
{
  "period": {
    "start_date": "2026-11-09",
    "end_date": "2026-11-16",
    "days": 7
  },
  "overview": {
    "total_validations": 412,
    "completed_validations": 409,
    "success_rate": 99.27,
    "avg_score": 78.4
  },
  "daily_stats": [
    {
      "date": "2026-11-16",
      "total": 58,
      "valid": 40,
      "invalid": 9,
      "risky": 9,
      "avg_score": 77.2
    }
  ],
  "top_domains": [
    {
      "domain": "gmail.com",
      "count": 131,
      "avg_score": 91.3
    }
  ]
}

Errors

Validation analytics: errors
StatusCodeWhen
401authentication_requiredNo API key was sent. The response carries a WWW-Authenticate header.
401invalid_credentialsThe key is unknown, inactive, expired, or the request IP is not on the key's allow-list. The response carries a WWW-Authenticate header.
403permission_deniedThe key has scopes set and history is not one of them.

Domain reputation

Check a domain

GET/domain-reputation/{domain}/
Scope: validate

Reputation signals for a domain: disposable, risky top-level domain, known spam trap, and a 0 to 100 reputation score. This call does not use credits.

risk_level is low, medium or high; a higher reputation_score means lower risk. is_corporate is kept for backward compatibility and means the domain is a well-known mail provider (the same as is_free_provider). A cached answer (cached: true) carries last_checked and a smaller set of fields than a fresh one.

Path

Check a domain: Path
NameTypeRequiredDescription
domainstringYesA domain such as example.com.

Request

curl -X GET "https://api.scrubimail.com/scrubimail/api/v1/domain-reputation/example.com/" \
  -H "X-API-Key: $SCRUBIMAIL_API_KEY"

Response

200 OK
{
  "domain": "example.com",
  "is_disposable": false,
  "tld_risk": false,
  "is_corporate": false,
  "is_free_provider": false,
  "spam_trap_risk": 0,
  "is_spam_trap": false,
  "reputation_score": 100,
  "risk_level": "low",
  "cached": false
}

Errors

Check a domain: errors
StatusCodeWhen
401authentication_requiredNo API key was sent. The response carries a WWW-Authenticate header.
401invalid_credentialsThe key is unknown, inactive, expired, or the request IP is not on the key's allow-list. The response carries a WWW-Authenticate header.
403permission_deniedThe key has scopes set and validate is not one of them.

Something missing or wrong? Email [email protected].