# Custom Flow Email Verification

**URL:** <https://community.auth0.com/t/custom-flow-email-verification/187187>\
**Category:** Get Help\
**Tags:** email-factor, mfa\
**Created:** [May 25, 2025, 2:30pm UTC](https://community.auth0.com/t/custom-flow-email-verification/187187 "2025-05-25T14:30:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![krishram1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/krishram1/32/71584_2.png) [@krishram1](https://community.auth0.com/u/krishram1)\
**Post date:** [May 25, 2025, 2:30pm UTC](https://community.auth0.com/t/custom-flow-email-verification/187187/1 "2025-05-25T14:30:03Z")

</div>

We are using Auth0 Enterprise for our employees. As part of an initiative, we want to validate the employees logging in with personal email to validate their company email. Is there any solution available to trigger code to verify email or magic link?

Verify email with code appears for Adaptive MFA related scenarios. Appreciate any help. TIA 🙂

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [May 26, 2025, 8:09pm UTC](https://community.auth0.com/t/custom-flow-email-verification/187187/3 "2025-05-26T20:09:40Z")

</div>

Hi @krishram1,

Welcome to the Auth0 Community!

You can achieve this directly by [Using the Management API in Actions](https://community.auth0.com/t/using-the-management-api-in-actions/64947), assuming that the personal email and the company email are under the same user’s profile, so the [User Account Linking](https://auth0.com/docs/manage-users/user-accounts/user-account-linking) was already made.

You can set up flag in app\_metadata, let say companyEmail\_verified, and if the value is false then you can use the Auth0 Management API within the Action to either:

1. send a verification email by calling the **POST /api/v2/jobs/verification-email** , which helps sending [an Email Verification Job](https://community.auth0.com/t/send-an-email-verification-job/141429)

2. create a custom email verification flow that produces a link that can be used for email verification by calling the **POST /api/v2/tickets/email-verification** endpoint, which allows you to [Create an email verification ticket](https://auth0.com/docs/api/management/v2/tickets/post-email-verification)

Then toggle this boolean flag accordingly, or rely on the email\_verified option which should reside under the identities.profileData object for the secondary identity of the user.

The [Customize Email Handling](https://auth0.com/docs/customize/email/manage-email-flow#verification-email) is the documentation in reference.

I hope this helps, and if you have further questions please let me know.  
Thanks,  
Remus

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [June 9, 2025, 8:09pm UTC](https://community.auth0.com/t/custom-flow-email-verification/187187/4 "2025-06-09T20:09:52Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
