# How to validate the properties of objects?

**URL:** <https://community.hubspot.com/t/how-to-validate-the-properties-of-objects/106986>\
**Category:** APIs & Integrations\
**Tags:** companies, contacts\
**Created:** [May 13, 2024, 7:08am UTC](https://community.hubspot.com/t/how-to-validate-the-properties-of-objects/106986 "2024-05-13T07:08:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![srushti18shah](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@srushti18shah](https://community.hubspot.com/u/srushti18shah)\
**Post date:** [May 13, 2024, 7:08am UTC](https://community.hubspot.com/t/how-to-validate-the-properties-of-objects/106986/1 "2024-05-13T07:08:54Z")

</div>

Hello,  
I want to add validations to the object properties like regex, email and phone number, etc, Is there any validation API? How can I validate the fields according to my use cases through API?

Thanks  
Srushti Shah

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [May 13, 2024, 3:57pm UTC](https://community.hubspot.com/t/how-to-validate-the-properties-of-objects/106986/2 "2024-05-13T15:57:10Z")

</div>

Hi, @srushti18shah 👋 Thanks for the great question. There is not a Validation API. Your options will include:

- using the validations that are used with the [Properties API](https://developers.hubspot.com/docs/api/crm/properties#property-type-and-fieldtype-values)
- using the [Data Quality Command Center](https://knowledge.hubspot.com/data-management/data-quality-command-center?_gl=1*ryak01*_ga*MzIwNDE4Mjg3LjE3MTU2MTA0NjA.*_ga_LXTM6CQ0XK*MTcxNTYxNDM0NS4yLjEuMTcxNTYxNDgyMi42MC4wLjA.) features available with Operations Hub
- handling your validation externally before sending your data to HubSpot

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![K\_Foster](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/k_foster/32/72168_2.png) [@K\_Foster](https://community.hubspot.com/u/K_Foster)\
**Post date:** [December 11, 2024, 8:42pm UTC](https://community.hubspot.com/t/how-to-validate-the-properties-of-objects/106986/3 "2024-12-11T20:42:51Z")

</div>

Hi @srushti18shah,

Yes! We installed [Real Contact Phone Grading](https://ecosystem.hubspot.com/marketplace/apps/trestle-real-contact-2019920?) HubSpot app by Trestle. The app can do a phone validation check, grade contact details, and email deliverability check all in one query! The Phone Activity Score is an esspecially helpful data point to determine connected/disconnected phone line status.

To connect the HubSpot app with Trestle, you will need a Trestle API key which you can get for free here ([link to sign up](https://portal.trestleiq.com/signup?)). Otherwise, it is fairly easy to install!

New contacts added to HubSpot will automatically be graded/verified with this app. Trestle also has batch processing options from their portal.  
Hope this helps!

---

<div class="post-metadata">

**Author:** ![AChauhan6](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@AChauhan6](https://community.hubspot.com/u/AChauhan6)\
**Post date:** [September 24, 2025, 3:01pm UTC](https://community.hubspot.com/t/how-to-validate-the-properties-of-objects/106986/4 "2025-09-24T15:01:12Z")

</div>

Hey @srushti18shah,

Great question! To validate fields like email addresses and phone numbers via APIs, you can use a combination of Numverify and Zapier for easy integration. Here’s how:

**1. Email Validation**

To validate email addresses, Numverify has a simple Email Validation API. It checks if the email is valid and active, as well as whether it’s disposable or not.

- When a user enters their email, send it to Numverify via the API.
- You’ll get a response on whether the email is valid or invalid.

Check it out here: [Numverify Email Validation](https://numverify.com/)

**2. Phone Number Validation**

For phone numbers, Numverify can validate whether the number is correct, active, and formatted properly. It also checks the country code and carrier.

- Send the phone number to Numverify.
- It will return data confirming if it’s a valid number.

Start using the **Numverify Phone Validation API** here: [Numverify Phone Validation API](https://numverify.com/)

**3. Automate Validation with Zapier**

If you want to automate the validation process, Zapier makes it easy. You can connect Numverify with your forms or CRM, so whenever a phone number or email is entered, it gets automatically validated.

- Use Zapier to send the data to Numverify when it’s submitted.
- Zapier updates your CRM or database with the validation results.

Learn more about **Numverify + Zapier Integration** here: [Numverify + Zapier](https://zapier.com/apps/numverify/integrations)

**4. Custom Validation with Regex**

If you need more control over custom fields, like validating a specific address format, you can use regex (regular expressions). It lets you define patterns for validation (e.g., validating a postal code).

Let me know if you need any help setting this up!

Cheers,

Aanchal
