# Help implementing a Custom Coded Workflow Action to call ZeroBounce for real-time email validation (

**URL:** <https://community.hubspot.com/t/help-implementing-a-custom-coded-workflow-action-to-call-zerobounce-for-real-time-email-validation/139949>\
**Category:** APIs & Integrations\
**Tags:** forms\
**Created:** [September 23, 2025, 1:09pm UTC](https://community.hubspot.com/t/help-implementing-a-custom-coded-workflow-action-to-call-zerobounce-for-real-time-email-validation/139949 "2025-09-23T13:09:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![OSari1](https://avatars.discourse-cdn.com/v4/letter/o/ea5d25/32.png) [@OSari1](https://community.hubspot.com/u/OSari1)\
**Post date:** [September 23, 2025, 1:09pm UTC](https://community.hubspot.com/t/help-implementing-a-custom-coded-workflow-action-to-call-zerobounce-for-real-time-email-validation/139949/1 "2025-09-23T13:09:08Z")

</div>

Hi folks,

We’re trying to validate form submissions _at workflow time_ using ZeroBounce, so only clean contacts proceed to our follow-up steps.

**Context & goal**

- We use HubSpot forms (Contact Us, Get Demo). Native anti-spam is on (CAPTCHA, domain blocks, honeypot + post-submission filters). Persistent spam still slips in via obfuscated free-mail domains.

- We have a paid **ZeroBounce** account and want to validate each email _as the contact enters the workflow_ and then route:

If someone has used the **ZeroBounce marketplace app** for _real-time_ validation on HubSpot forms (not just list scrubbing)? Need your help

---

<div class="post-metadata">

**Author:** ![STierney](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/stierney/32/186066_2.png) [@STierney](https://community.hubspot.com/u/STierney)\
**Post date:** [September 23, 2025, 6:51pm UTC](https://community.hubspot.com/t/help-implementing-a-custom-coded-workflow-action-to-call-zerobounce-for-real-time-email-validation/139949/2 "2025-09-23T18:51:12Z")

</div>

Hey @OSari1 - thanks for posting in the Community!  
I’d like to tag in some coding experts here to see what may be possible!  
@derekcavaliero, @JTBuys, and @ChristinaKay - any thoughts here?  
Shane, Community Manager

---

<div class="post-metadata">

**Author:** ![JTBuys](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jtbuys/32/62318_2.png) [@JTBuys](https://community.hubspot.com/u/JTBuys)\
**Post date:** [September 24, 2025, 4:43pm UTC](https://community.hubspot.com/t/help-implementing-a-custom-coded-workflow-action-to-call-zerobounce-for-real-time-email-validation/139949/3 "2025-09-24T16:43:39Z")

</div>

@OSari1, based on the [ZeroBounce documentation](https://www.zerobounce.net/docs/api-integrations/#hubspot_integration), this may be possible without any custom coding. I would start with the steps below. If that doesn’t work, then it may be necessary to validate through a custom coded action using the API.

1. Create an active segment (list) of contacts that have filled out any form you want to validate.
2. Configure a new validation in ZeroBounce using the new segment and **toggle on Auto Validation**
3. Create a workflow to manage contacts with failed validation (i.e. Invalid / disposable / toxic / spam-trap / undeliverable → set quarantine flags, add to a static list, and halt marketing emails)
4. Add enrollment filter criteria to your workflows for contacts that have a valid ZeroBounce result. Also add unenrollment criteria for invalid ZeroBounce results (in the event that an email becomes undelierable.)
