Analytics and product tools
Check email domains, IP addresses and phone numbers in Heap
Attach an email-domain signal to Heap users so funnels and cohorts can separate real sign-ups from throwaway ones.
Why the data matters in Heap
Heap counts every identified user in a funnel, so throwaway sign-ups lower conversion rates that your team then tries to fix in the product. A user property set at identification lets a cohort leave them out and show the real rate.
What LookValid checks
| Product | What it does here | Credits |
|---|---|---|
| Email Domain Check | Reads 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 |
| IP Intelligence | Returns country, region, network owner and risk flags from open data for an address a sign-up came from. | 1 credit per lookup |
| Phone Numbering-Plan Validation | Checks 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 |
Connect it in four steps
- Create a LookValid account and generate an API key from the dashboard, which a person does once.
- Keep the LookValid key as a server environment variable and the Heap app id as configuration, so neither reaches the browser.
- Check the email when the account is created; on found:false send nothing, and on an error answer log the code and fix.
- POST to the add_user_properties endpoint with the app_id, the identity and the three values under properties, then define a cohort on the disposable property.
A server-side Node function called right after you identify a user. The call is POST https://YOUR_API_HOST/v1/email-domain-check and costs 1 credit per address checked.
const API_URL = "https://YOUR_API_HOST/v1/email-domain-check";
export async function validateHeapUserEmail(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,
};
}
| Response field | Goes into |
|---|---|
| data.deliverability_signal | email_signal |
| data.disposable | email_disposable |
| data.role_account | email_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
A tag manager cannot hold the key safely, so use an automation platform's generic HTTP step on your signup event to call LookValid and then Heap.
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 Heap 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.
What does Heap require in the request?
An app_id, the identity of the user and a properties object; the email key must be lowercase to fill the built-in email property.
Sources
- Heap API: add user properties https://developers.heap.io/reference/add-user-properties, read 2026-10-30
- LookValid API reference: Email Domain Check https://lookvalid.com/docs/api/email-domain-check, read 2026-10-18
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.
Related pages
LookValid bills every lookup in credits from one shared balance, so the same key works for each check above.
See Email Domain Check