# New user via API - set password flow

**URL:** <https://community.auth0.com/t/new-user-via-api-set-password-flow/62654>\
**Category:** Get Help\
**Tags:** password, manage-users, auth0\
**Created:** [May 12, 2021, 10:03am UTC](https://community.auth0.com/t/new-user-via-api-set-password-flow/62654 "2021-05-12T10:03:12Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [May 12, 2021, 1:46pm UTC](https://community.auth0.com/t/new-user-via-api-set-password-flow/62654/7 "2021-05-12T13:46:52Z")

</div>

> [@adeliab](#):
>
> The idea is to have an external application calls our custom User API, which will send a request to Auth0 to create the user - with this call [Auth0 Management API v2](https://auth0.com/docs/api/management/v2#!/Users/post_users)

Thanks for clarifying!

> [@adeliab](#):
>
> the **mark\_email\_as\_verified** parameter in the change password ticket, if it’s set to true - does that mean the email is verified during the ticket generation? or after the user sets the password?

The user’s email will be verified only after they reset their password when `mark_email_as_verified` is `true`.

> [@adeliab](#):
>
> And how can we trigger the sending of invitation email after the user is created?

When you call the `/api/v2/tickets/password-change` endpoint, you will receive a URL that can be used in a template in your own external email provider. You can use the [Post-User Registration Hook](https://auth0.com/docs/hooks/extensibility-points/post-user-registration?_ga=2.227476888.464884123.1620041333-1595415333.1607347674&_gac=1.86497002.1620663261.Cj0KCQjws-OEBhCkARIsAPhOkIbhK13acrxZIWhKyPE4GlpGf7ZKmKpxtmuQbD_VcaLmyScFgvNZcmAaAntFEALw_wcB) to trigger the email.

Here is an example of sending an email in a Rule with the Mandrill email provider: [Auth0 Actions](https://auth0.com/rules/mandrill?_ga=2.227476888.464884123.1620041333-1595415333.1607347674&_gac=1.86497002.1620663261.Cj0KCQjws-OEBhCkARIsAPhOkIbhK13acrxZIWhKyPE4GlpGf7ZKmKpxtmuQbD_VcaLmyScFgvNZcmAaAntFEALw_wcB). You could do something similar in a Post-User Registration Hook to send the email.

You can also follow this answer to use the Auth0 change password email template: [Sending password change email instead of verification email for a new user - #3 by stephanie.chamblee](https://community.auth0.com/t/sending-password-change-email-instead-of-verification-email-for-a-new-user/55713/3)  
With this solution, you would likely need to configure the template in a way that regular password change requests would look different than the initial password reset.

---

_[View the full topic](https://community.auth0.com/t/new-user-via-api-set-password-flow/62654)._
