---
title: "Validate contact data in HubSpot"
url: "https://lookvalid.com/integrations/hubspot.md"
canonical_url: "https://lookvalid.com/integrations/hubspot"
last_updated: "2026-10-30"
type: "how-to"
summary: "Score the email domain of every HubSpot contact and write the signal back as contact properties your lists and workflows can use to filter contacts."
related: ["https://lookvalid.com/integrations.md", "https://lookvalid.com/docs/api/email-domain-check.md", "https://lookvalid.com/docs/quickstart.md"]
---

# Validate contact data in HubSpot

> **For AI agents:** the complete index of LookValid pages is [llms.txt](https://lookvalid.com/llms.txt). Every page is also served as markdown at its URL plus .md.

Score the email domain of every HubSpot contact and write the signal back as contact properties your lists and workflows can use to filter contacts.

HubSpot lists and workflows act on whatever sits in the contact record, so a throwaway or role address enrolled in a sequence burns sending reputation and inflates the contact count you pay for. Properties that record the check let a workflow exclude those contacts before the first email.

## What LookValid checks

- [Email Domain Check](https://lookvalid.com/products/email-domain-check.md): 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)
- [Phone Numbering-Plan Validation](https://lookvalid.com/products/phone.md): 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)
- [Link Safety Check](https://lookvalid.com/products/link-safety.md): Checks 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 the LookValid key in LOOKVALID_API_KEY and a HubSpot private app token in a second variable, and create three custom contact properties named email_signal, email_disposable and email_role first, because the API only updates properties that already exist.
3. Read each contact's email property, call the function, skip the contact when the answer is found:false, and stop the run on an error so the code and fix show in the job log.
4. Send the three values in the properties object of a PATCH to /crm/v3/objects/contacts/{contactId}, then build an active list on email_disposable and email_role to keep those contacts out of enrollment.

A Python script run by your scheduler that reads recently created contacts through the CRM API and updates them. The call is `POST https://YOUR_API_HOST/v1/email-domain-check`.

```python
import json
import os
import urllib.error
import urllib.request

API_URL = "https://YOUR_API_HOST/v1/email-domain-check"


def validate_hubspot_email(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"),
    }
```

| Response field | Goes into |
| --- | --- |
| `data.deliverability_signal` | email_signal |
| `data.disposable` | email_disposable |
| `data.role_account` | email_role |

## Without code

HubSpot workflows can call a webhook action, and automation platforms with a generic HTTP step can run the same POST on contact creation. Send the contact email to the LookValid endpoint with the key in a header and map the returned fields to the three properties.

## 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 HubSpot 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 HubSpot endpoint receives the result?

The contacts endpoint of the CRM API, with a PATCH to /crm/v3/objects/contacts/{contactId} and the new values inside a properties object.

## Sources

- [HubSpot CRM API: contacts guide](https://developers.hubspot.com/docs/api-reference/legacy/crm/objects/contacts/guide), read 2026-10-30

## Related

- [Tool integrations for phone, email and IP checks](https://lookvalid.com/integrations.md)
- [Email Domain Check reference](https://lookvalid.com/docs/api/email-domain-check.md)
- [Quickstart](https://lookvalid.com/docs/quickstart.md)
