Email marketing

Check email domains, phone numbers and links in Brevo

Screen the email domain of contacts as they enter Brevo and store the result in contact attributes your lists can use as filters.

Why the data matters in Brevo

Brevo caps sending by plan and watches bounce and complaint rates, so a contact list padded with role mailboxes and throwaway domains consumes both the allowance and the goodwill. Contact attributes recorded at import let a campaign target only the addresses worth sending to.

What LookValid checks

LookValid checks for Brevo
ProductWhat it does hereCredits
Email Domain CheckReads the domain behind an address: mail records, SPF, DMARC, throwaway domains, free providers and role mailboxes. It never contacts the mail server, so it cannot confirm that a mailbox exists.1 credit per address checked
Phone Numbering-Plan ValidationChecks a phone number against its country numbering plan and returns E.164 and the number type. It does not say whether the line is active.1 credit per valid number
Link Safety CheckChecks the domain of a web address against a public list of reported malicious domains. An unlisted domain is not proof of safety.1 credit per URL checked (a check that cannot run is free)

Connect it in four steps

  1. Create a LookValid account and generate an API key from the dashboard, which a person does once.
  2. Keep LOOKVALID_API_KEY and the Brevo api-key header value in separate variables, and create text and boolean contact attributes for the three results in the Brevo contacts settings.
  3. Run the check on each imported address, skip a contact when the answer is found:false, and stop on an error so the code and fix are visible.
  4. PUT /v3/contacts/{identifier} with the three values in the attributes object, then build a list from the attributes to suppress flagged contacts.

A Python script run after each import that updates the new contacts through the contacts API. The call is POST https://YOUR_API_HOST/v1/email-domain-check and costs 1 credit per address checked.

validate_brevo_contact.py
import json
import os
import urllib.error
import urllib.request
​
API_URL = "https://YOUR_API_HOST/v1/email-domain-check"
​
​
def validate_brevo_contact(value):
    request = urllib.request.Request(
        API_URL,
        data=json.dumps({
            "email": value,
        }).encode(),
        headers={
            "Authorization": "Bearer " + os.environ["LOOKVALID_API_KEY"],
            "Content-Type": "application/json",
        },
        method="POST",
    )
    try:
        with urllib.request.urlopen(request, timeout=30) as response:
            result = json.load(response)
    except urllib.error.HTTPError as error:
        failure = json.load(error)["error"]
        raise RuntimeError(failure["code"] + ": " + failure["fix"])
    if not result["found"]:
        return None
    return {
        "email_signal": result.get("data", {}).get("deliverability_signal"),
        "email_disposable": result.get("data", {}).get("disposable"),
        "email_role": result.get("data", {}).get("role_account"),
    }
Where each response field goes in Brevo
Response fieldGoes into
data.deliverability_signalemail_signal
data.disposableemail_disposable
data.role_accountemail_role

The recipe returns nothing when the lookup finds nothing, which costs no credits for this product, and stops with the error code and fix on a failed request.

Without code

Brevo automations can call a webhook, and an automation platform's generic HTTP step can post the address to LookValid and update the contact through a second request.

REST and MCPOne shared credit balance

Questions

What does a check cost in credits?

Each call uses the credits listed for the product on the pricing page, so the monthly use in Brevo follows the number of addresses you check.

What does the email check not do?

It looks at the domain only. It does not contact the mail server and cannot say whether a particular mailbox exists, so treat a good signal as a domain that can receive mail.

Which Brevo field takes custom values?

The attributes object on the contact; each key must match an attribute you created beforehand.

Sources

LookValid is run by Meralume Labs. It is not connected to, endorsed by or a partner of any company or product named on this page, and every product name belongs to its owner.

LookValid bills every lookup in credits from one shared balance, so the same key works for each check above.

See Email Domain Check