Email marketing

Check email domains, phone numbers and links in Drip

Write an email-domain signal to Drip subscribers as custom fields so workflows can skip risky addresses.

Why the data matters in Drip

Drip workflows fire on subscriber events, so a bad address that joins a welcome series receives several emails and bounces on each. A custom field recorded on entry gives the workflow an exit condition at the first step.

What LookValid checks

LookValid checks for Drip
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. Hold the LookValid key and the Drip API token in separate environment variables of the signup service.
  3. Check the address as the form posts; on found:false continue untagged, and on an error answer log the code and fix.
  4. POST to /v2/{account_id}/subscribers with the email and the three values in custom_fields, then branch workflows on them.

A Node function on your signup path that checks the address before the subscriber is created. The call is POST https://YOUR_API_HOST/v1/email-domain-check and costs 1 credit per address checked.

validateDripSubscriber.mjs
const API_URL = "https://YOUR_API_HOST/v1/email-domain-check";
​
export async function validateDripSubscriber(value) {
  const response = await fetch(API_URL, {
    method: "POST",
    headers: {
      Authorization: `Bearer ${process.env.LOOKVALID_API_KEY}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      "email": value,
    }),
  });
  const result = await response.json();
  if (!response.ok) throw new Error(`${result.error.code}: ${result.error.fix}`);
  if (!result.found) return null;
  return {
      "email_signal": result.data?.deliverability_signal ?? null,
      "email_disposable": result.data?.disposable ?? null,
      "email_role": result.data?.role_account ?? null,
  };
}
Where each response field goes in Drip
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

An automation platform with a generic HTTP step placed before the Drip subscriber step gives the same result without code.

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 Drip 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.

Where do custom values go in Drip?

In the custom_fields object on the subscriber, keyed by field name.

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