apyhub
Back
▣ VERIFICATION KIT

Check Email Risk Score in Bulk API

What it does

The Check Email Risk Score in Bulk API is a bulk email validation API that scores up to 50 email addresses in one request. For each address you get a status (valid, risky or invalid), a risk_score from 0 to 100 and the reasons behind it. A summary object counts how many addresses fall into each status.

Send the addresses in the emails array: 1 to 50 strings, each up to 1,000 characters. Results come back in the order you sent them, and duplicates are kept. Each address gets the same checks as the single-address API: syntax, MX records, disposable domains, free webmail providers, role names like info, and typos of popular domains with a suggested fix in did_you_mean.

Teams use this bulk email validation API to clean CSV and CRM imports, check a mailing list before a campaign and review leads in batches. The summary counts show at a glance whether a list needs cleanup.

The API does not contact the mailbox, so it cannot confirm that an inbox exists. An item that is not a string, such as a number or null, rejects the whole request with a 422 error.

For one address at a time, such as on a signup form, use the Check Email Risk Score API.

POST
Validate several email addresses
https://api.eu.apyhub.com/pk313167/check-email-risk-score-bulk/validate/batch

QUICKSTART

GUIDE

Quickstart

Check two addresses in one call.

curl -X POST "https://api.eu.apyhub.com/pk313167/check-email-risk-score-bulk/validate/batch" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"emails":["[email protected]","not-an-email"]}'

What you'll get back

Returns a JSON object with one result per address, in order, and a summary of status counts. The example below is trimmed to the first result.

{
  "results": [
    {
      "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"
    }
  ],
  "summary": {
    "total": 2,
    "valid": 0,
    "risky": 1,
    "invalid": 1,
    "unknown": 0
  }
}
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.
BatchRequest*
emails*
1 to 50 email addresses, each up to 1000 characters.

About this endpoint

What it does

Checks up to 50 email addresses in one call and returns a result for each, in order, plus status totals.

Request Body

ParameterTypeDescription
emailsString ArrayRequired. The addresses to check. Each item up to 1000 characters. Minimum 1 item. Max 50 items.

Response

Returns a JSON object with results and summary. Each item in results has the same fields as the single-address response, in the same order as emails.

ParameterTypeDescription
results[].emailStringThe address exactly as sent.
results[].normalizedStringLower-cased address. null when the syntax is invalid.
results[].statusENUMAllowed values: valid, risky, invalid, unknown.
results[].risk_scoreIntegerSum of risk_factors points, capped at 100. Range: 0 to 100.
results[].risk_levelENUMAllowed values: low, medium, high.
results[].reasonsString ArrayCodes from risk_factors, same order.
results[].risk_factors[].codeStringFactor code, for example disposable_domain, possible_typo_domain, role_based_address, no_mx_record, invalid_syntax.
results[].risk_factors[].pointsIntegerPoints this factor adds. Range: 0 to 100.
results[].checks.syntax_validBooleanThe address passes syntax rules.
results[].checks.domain_existsBooleanThe domain resolves in DNS.
results[].checks.has_mxBooleanThe domain has MX records.
results[].checks.disposableBooleanKnown disposable domain.
results[].checks.free_providerBooleanKnown free webmail domain.
results[].checks.role_basedBooleanThe part before @ is a role name.
results[].checks.possible_typoBooleanThe domain looks like a typo of a popular domain.
results[].details.local_partStringThe part before @.
results[].details.domainStringThe part after @.
results[].details.dns_statusENUMAllowed values: ok, null_mx, a_fallback, no_mail_records, nxdomain, timeout, error. null when the syntax is invalid.
results[].details.mx_recordsString ArrayMX hosts found.
results[].details.roleStringDetected role name. null when not role-based.
results[].details.did_you_meanStringSuggested domain when a typo is likely. null otherwise.
results[].mailbox_verifiedBooleanAlways false.
results[].smtp_checkENUMAllowed values: not_performed.
summary.totalIntegerNumber of addresses checked.
summary.validIntegerCount with status valid.
summary.riskyIntegerCount with status risky.
summary.invalidIntegerCount with status invalid.
summary.unknownIntegerCount with status unknown.

Notes

  • An invalid address is a normal result row with status invalid. It does not fail the request.
  • An empty list, more than 50 items, a missing emails field, or an item that is not a string (a number, null or an object) returns 422 with {"error":{"code":"invalid_request","message":"Request validation failed.","details":[{"loc":["body","emails"],"msg":"...","type":"..."}]}}.
  • Results match the single-address API exactly for the same input.
▣ 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.