# How to ask a user to create a password for the account made for him?

**URL:** <https://meta.discourse.org/t/how-to-ask-a-user-to-create-a-password-for-the-account-made-for-him/141825>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [17 februari 2020 om 18:45 UTC](https://meta.discourse.org/t/how-to-ask-a-user-to-create-a-password-for-the-account-made-for-him/141825 "2020-02-17T18:45:58Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![dm.linov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dm.linov/32/167719_2.png) [@dm.linov](https://meta.discourse.org/u/dm.linov)\
**Post date:** [17 februari 2020 om 18:45 UTC](https://meta.discourse.org/t/how-to-ask-a-user-to-create-a-password-for-the-account-made-for-him/141825/1 "2020-02-17T18:45:58Z")

</div>

We have a feedback form on our website, which is mostly used for support questions. I want questions posted there to become new topics on our forum, powered by Discourse.

I am trying to implement the following sequence of actions:

1. Create a new user via API, based on the name and e-mail, submitted via the form.
2. Create a new topic, authored by this user.
3. Send this user an e-mail with the link to this topic, and also **a request to create a password**.

Now, I have found **four** e-mail templates on Discourse, that could be used in step 3 - “Account created”, “Login via link”, “Forgot Password” and “Set Password”. In the API documentation, I only found a call that sends the “Forgot Password” message, but this doesn’t seem to be the best candidate for my case.

My questions:  
a) Under what circumstances other three messages (“Account created”, “Login via link”, and “Set Password”) are sent?  
b) How can I send them via API?

---

_[View the full topic](https://meta.discourse.org/t/how-to-ask-a-user-to-create-a-password-for-the-account-made-for-him/141825)._
