# API to send verification email using user invitation template

**URL:** <https://community.auth0.com/t/api-to-send-verification-email-using-user-invitation-template/86419>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [July 5, 2022, 10:41am UTC](https://community.auth0.com/t/api-to-send-verification-email-using-user-invitation-template/86419 "2022-07-05T10:41:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vidyarani.nethi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vidyarani.nethi/32/37887_2.png) [@vidyarani.nethi](https://community.auth0.com/u/vidyarani.nethi)\
**Post date:** [July 5, 2022, 10:41am UTC](https://community.auth0.com/t/api-to-send-verification-email-using-user-invitation-template/86419/1 "2022-07-05T10:41:52Z")

</div>

Hi,  
we are trying to setup custom pre-registration flow and as part of that we have to generate a user invitation template and send an email for verification.

As per the docs, this endpoint doesn’t accept any email template [Auth0 Management API v2](https://auth0.com/docs/api/management/v2#!/Jobs/post_verification_email).

Is there any API to plugin the user invitation template and send the email?

Thanks,  
Vidya.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [July 6, 2022, 6:37pm UTC](https://community.auth0.com/t/api-to-send-verification-email-using-user-invitation-template/86419/3 "2022-07-06T18:37:02Z")

</div>

Hi @vidyarani.nethi,

Thanks for reaching out to the Auth0 Community!

I understand that you want to change the verification email template and then send that template in a pre-registration flow.

> [@vidyarani.nethi](#):
>
> Is there any API to plugin the user invitation template and send the email?

First, to update the verification email template, I recommend using the Management API [Update an Email template endpoint](https://auth0.com/docs/api/management/v2#!/Email_Templates/put_email_templates_by_templateName) and selecting the `verify_email` template.

After you have updated the template, you can move on to sending a verification email to the user by calling the Management API [Send an email address verification email endpoint](https://auth0.com/docs/api/management/v2#!/Jobs/post_verification_email).

I would like to emphasize that, by default, newly created users will get a verification email. In this situation, you may only need to customize the template and allow the automatically sent verification email to happen.

I hope this helps!

Did I answer all of your questions?

Thank you.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 21, 2022, 5:12pm UTC](https://community.auth0.com/t/api-to-send-verification-email-using-user-invitation-template/86419/4 "2022-12-21T17:12:39Z")

</div>


