EmailReputationAPI Documentation

Validating domains using EmailReputationAPI couldn't be easier; after generating a unique API key, you'll interact with the https://emailreputationapi.com/api/v1/validate endpoint, passing the domain/email via a secure customer header named email. Your API key will be securely passed to our server via a bearer token header.

Generating Your API Key

After starting a trial, head over to the dashboard to generate an API key.

EmailReputationAPI Libraries

API Responses

The EmailReputationAPI API will perform (at a minimum) two checks on the domain you submit:

  • Syntax Validity: A lead e-mail or domain is useless if it's syntactically invalid. Examples of invalid syntax include: willATexample-.com, example .com, win@.com, example@@com, and example.com@.
  • Domain Type: Each domain is compared to the EmailReputationAPI database to determine whether it is associated with a personal or disposal (anonymized) e-mail service. If the domain is not of type personal or anonymized, the service may be able to classify it as being of type business or government. If all of these checks fail, the domain is classified as unknown.
  • Let's walk through several response scenarios.

    Invalid Domain Syntax

    If the client submits a domain that is syntactically invalid such as nebraskacorn@.org, the server will return a 400 response with a JSON payload that looks like this:

    {
        "email": ".org",
        "syntax": "invalid"
    }
    

    Invalid Top-Level Domain (TLD)

    If the client submits a domain with an invalid top-level domain (TLD) such as nebraskacorn.corn, the server will return a 200 response with a JSON payload that looks like this:

    {
        "email": "nebraska.corn",
        "syntax": "valid",
        "tld": "false",
        "personal": "false",
        "disposable": "false",
        "business": "false",
        "government": "false",
        "unknown": "true"
    }
    

    Personal Domain Identified

    If the client submits an email address or domain that is identified as a personal domain, the server will return a 200 response with a JSON payload setting the personal attribute to true:

    {
        "email": "hotmail.com",
        "syntax": "valid",
        "tld": "true",
        "personal": "true",
        "disposable": "false",
        "government": "false",
        "business": "false",
        "unknown": "false"
    }
    

    Disposable Domain Identified

    If the client submits an email address or domain that is identified as a disposable domain, the server will return a 200 response with a JSON payload setting the disposable to true:

    {
        "email": "sharklasers.com",
        "syntax": "valid",
        "tld": "true",
        "personal": "false",
        "disposable": "true",
        "government": "false",
        "business": "false",
        "unknown": "false"
    }
    

    Business Domain Identified

    If the client submits an email address or domain that is identified as a business domain, the server will return a 200 response with a JSON payload setting the business to true:

    {
        "email": "kona-ice.com",
        "syntax": "valid",
        "tld": "true",
        "personal": "false",
        "disposable": "true",
        "government": "false",
        "business": "true",
        "unknown": "false"
    }
    

    Business Domain Identified

    If the client submits an email address or domain that is identified as a business domain, the server will return a 200 response with a JSON payload setting the business to true:

    {
        "email": "kona-ice.com",
        "syntax": "valid",
        "tld": "true",
        "personal": "false",
        "disposable": "true",
        "government": "false",
        "business": "true",
        "unknown": "false"
    }
    

    Unknown Domain Identified

    A domain will be identified as of type unknown when our system does not identify it as being associated with a known domain. Keep in mind that while our database is quite comprehensive and regularly updated, it is not exhaustive.

    Our system is tracking a growing number of government and business domains, and if the submitted domain is further identified, the subtype key will contain additional info. Here is an example:

    {
        "email": "example.com",
        "syntax": "valid",
        "tld": "true",
        "personal": "false",
        "disposable": "false",
        "business": "false",
        "government": "false",
        "unknown": "true"
    }