Email Validator: Disposable

Check Disposable

Tells you in milliseconds if an address or domain is disposable or high-risk, so you can block fake signups. It does not talk to the mailbox server: use Validate Email for that.

POSThttps://g.sendcorex.com/v1/tool/validatecommand: check_disposable
i

Needs the tools:validate scope on your API key.

i

Uses 1 disposable credit (not a validation credit). Unlimited plans are never charged.

i

Send email or domain. With an email, the fraud reputation of the address is checked too.

Arguments

  • emailstringoptional

    The address to check. Up to 254 characters.

    e.g. "john@mailinator.com"

  • domainstringoptional

    Only the domain, when you do not have the full address.

    e.g. "mailinator.com"

Quick start

import axios from 'axios';

const response = await axios.post(
  'https://g.sendcorex.com/v1/tool/validate',
  {
    commands: [
      {
        command: "check_disposable",
        args: {
          email: "john@mailinator.com"
        }
      }
    ]
  },
  { headers: { Authorization: process.env.SENDCOREX_API_KEY } },
);

const [result] = response.data.results;
if (result.type !== 'SUCCESS') throw new Error(`${result.code}: ${result.message}`);
console.log(result.data);

Response

{
  "type": "SUCCESS",
  "results": [
    {
      "command": "check_disposable",
      "id": "0",
      "type": "SUCCESS",
      "took_ms": 2,
      "data": {
        "email": "john@mailinator.com",
        "domain": "mailinator.com",
        "is_disposable": true,
        "high_risk": true,
        "code": "fully_confirmed",
        "reason": "Confirmed",
        "checks": [
          {
            "check": "Domain Blocklist Match",
            "status": "Failed",
            "details": "Domain found in known disposable list"
          }
        ],
        "unlimited": false,
        "remaining_credits": 4999
      }
    }
  ]
}

Response fields

  • email

    The address you sent, trimmed and in lowercase. null when you sent only a domain.

  • domain

    The domain that was checked.

  • is_disposable

    true for temporary/throwaway providers. Block the signup.

  • high_risk

    true when the address is disposable OR was flagged for fraud on Sendcorex before. Block or send to review.

  • code

    fully_confirmed when something was found, clear when nothing was.

  • reason

    A short explanation of the verdict.

  • checks

    The checks that ran (check, status, details). See Checks below.

  • remaining_credits

    Disposable credits left after this check. null on an unlimited plan.

  • unlimited

    true on an unlimited plan.

Checks

From the cheapest to the slowest. A domain on the blocklist answers right away, without any DNS lookup.

  • Email Reputation Check

    Only appears when it fails: the address was flagged for fraud on Sendcorex. Sets high_risk, not is_disposable.

  • Domain Blocklist Match

    The domain is a known disposable provider. When it fails, nothing else runs: the answer comes back right away.

  • MX Record Check

    The domain is hosted on infrastructure used by disposable providers, even if it is not on any list yet.

  • MX Record Present

    Informative: the domain has MX records. A domain with no MX cannot receive email (often a typo), but this alone does not make it disposable.

Using the result

  • Signup forms

    Call it before creating the account. When is_disposable is true, ask for another address.

  • High risk

    high_risk without is_disposable is a real mailbox flagged for fraud on Sendcorex. Block it or hold the account for review.

  • Disposable vs. Validate Email

    This check is instant and cheap. Validate Email also asks the mailbox server if the address exists, which takes seconds: use it before sending.

Errors

HTTP-level errors return type, code and message. Errors marked CMD come back inside the command result, with HTTP 200.

  • 401INVALID_API_KEY

    The API key does not exist, was revoked or was disabled in the dashboard.

  • 429RATE_LIMITED

    More than 75 requests/s or 75 in flight for the same IP + API key. Wait the number of seconds in Retry-After.

  • CMDMISSING_SCOPE

    The API key does not have `tools:validate`.

  • CMDINVALID_ARGS

    An argument is invalid: missing email (or domain, for `check_disposable`), more than 50 emails, an address longer than 254 characters, limit out of range…

  • CMDINSUFFICIENT_CREDITS

    You do not have enough credits for the whole command (validation credits for `validate_*`, disposable credits for `check_disposable`). Nothing was checked and nothing was charged.

  • CMDCREDITS_UNAVAILABLE

    Your credits could not be read right now. Nothing was charged. Try again.

  • CMDINTERNAL

    Server error. The detail is only written to the server log.