apyhub
Back
▣ VERIFICATION KIT

Check Email Risk Score API

What it does

The Check Email Risk Score API tells you how risky an email address is before you accept it. Send one address and get back a status (valid, risky or invalid), a risk_score from 0 to 100, a risk_level and the reasons behind the score.

Send the address in the email query parameter, up to 1,000 characters. The API checks the syntax and looks up the domain's mail servers (MX records). It compares the domain with lists of disposable domains, free webmail providers and role names like info or support. It also spots typos of popular domains and suggests a fix in did_you_mean, for example gmail.com for gmial.com. Each finding adds points, and risk_factors lists every code with its points.

Teams use this email risk score API to block disposable signups, catch typos on signup forms, flag role addresses in CRM imports and clean contact lists before a campaign.

The API does not contact the mailbox, so it cannot confirm that the inbox exists. smtp_check is always not_performed.

To check up to 50 addresses in one call, use the Check Email Risk Score in Bulk API. AI agents can call it through ApyHub MCP.

GET
Validate one email address
https://api.eu.apyhub.com/pk313167/check-email-risk-score/validate/single

QUICKSTART

GUIDE

Quickstart

Check one email address.

curl --get "https://api.eu.apyhub.com/pk313167/check-email-risk-score/validate/single" \
  --data-urlencode "[email protected]" \
  -H "apy-token: $APY_TOKEN"

What you'll get back

Returns a JSON object with the status, risk score, the factors behind it, per-check results and DNS details.

{
  "email": "[email protected]",
  "normalized": "[email protected]",
  "status": "risky",
  "risk_score": 50,
  "risk_level": "medium",
  "reasons": [
    "mailbox_unverified",
    "role_based_address",
    "no_mx_record"
  ],
  "risk_factors": [
    {
      "code": "mailbox_unverified",
      "points": 5
    },
    {
      "code": "role_based_address",
      "points": 20
    },
    {
      "code": "no_mx_record",
      "points": 25
    }
  ],
  "checks": {
    "syntax_valid": true,
    "domain_exists": true,
    "has_mx": false,
    "disposable": false,
    "free_provider": false,
    "role_based": true,
    "possible_typo": false
  },
  "details": {
    "local_part": "info",
    "domain": "acme-corp.com",
    "dns_status": "a_fallback",
    "mx_records": [],
    "role": "info",
    "did_you_mean": null
  },
  "mailbox_verified": false,
  "smtp_check": "not_performed"
}
TRY ITLIVE · 10 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
The email address to check. 1 to 1000 characters.

About this endpoint

What it does

Checks one email address and returns a status, a 0 to 100 risk score, and the reasons behind the score.

Query Parameter(s)

ParameterTypeDescription
emailStringRequired. The email address to check. Length: 1 to 1000 characters. Sent as is: leading or trailing spaces make the address invalid.

Response

Returns a JSON object with the address, its status, risk_score and risk_level, the reasons and risk_factors behind the score, per-check results in checks, and DNS details in details.

ParameterTypeDescription
emailStringThe address exactly as sent.
normalizedStringLower-cased address. null when the syntax is invalid.
statusENUMAllowed values: valid, risky, invalid, unknown. invalid means the address cannot receive mail (bad syntax, no domain, or no mail records).
risk_scoreIntegerSum of all risk_factors points, capped at 100. Range: 0 to 100.
risk_levelENUMAllowed values: low, medium, high.
reasonsString ArrayThe codes from risk_factors, in the same order.
risk_factorsObject ArrayEvery factor that raised the score.
risk_factors[].codeStringFactor code, for example disposable_domain, possible_typo_domain, role_based_address, no_mx_record, domain_not_found, null_mx, no_mail_records, invalid_syntax, mailbox_unverified.
risk_factors[].pointsIntegerPoints this factor adds. Range: 0 to 100.
checks.syntax_validBooleanThe address passes syntax rules.
checks.domain_existsBooleanThe domain resolves in DNS.
checks.has_mxBooleanThe domain has MX records.
checks.disposableBooleanThe domain is a known disposable (throwaway) provider.
checks.free_providerBooleanThe domain is a known free webmail provider, such as gmail.com.
checks.role_basedBooleanThe part before @ is a role name, such as info or support.
checks.possible_typoBooleanThe domain looks like a typo of a popular domain.
details.local_partStringThe part before @.
details.domainStringThe part after @.
details.dns_statusENUMAllowed values: ok, null_mx, a_fallback, no_mail_records, nxdomain, timeout, error. null when the syntax is invalid. a_fallback means no MX record but the domain has an A record.
details.mx_recordsString ArrayMX hosts found. Empty when there are none.
details.roleStringDetected role name. null when not role-based.
details.did_you_meanStringSuggested domain when a typo is likely, for example gmail.com. null otherwise.
mailbox_verifiedBooleanAlways false. The mailbox is not contacted.
smtp_checkENUMAllowed values: not_performed.

Notes

  • Points seen in testing: mailbox_unverified 5, role_based_address 20, possible_typo_domain 20, no_mx_record 25, disposable_domain 60, and 100 each for invalid_syntax, domain_not_found, null_mx, no_mail_records.
  • Seen in testing: score 5 is low, 25 to 50 is medium, 65 and above is high. invalid appears only at score 100.
  • A missing, empty or over-1000-character email returns 422 with {"error":{"code":"invalid_request","message":"Request validation failed.","details":[{"loc":["query","email"],"msg":"Field required","type":"missing"}]}}.
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.