# How can we reset the password through api?

**URL:** <https://forums.knack.com/t/how-can-we-reset-the-password-through-api/17302>\
**Category:** Get Answers\
**Created:** [June 4, 2024, 3:43am UTC](https://forums.knack.com/t/how-can-we-reset-the-password-through-api/17302 "2024-06-04T03:43:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Keshav](https://avatars.discourse-cdn.com/v4/letter/k/b5e925/32.png) [@Keshav](https://forums.knack.com/u/Keshav)\
**Post date:** [June 4, 2024, 3:43am UTC](https://forums.knack.com/t/how-can-we-reset-the-password-through-api/17302/1 "2024-06-04T03:43:07Z")

</div>

i want to add a password reset button in my app which use knack as a backend. Can i use knack api feature to reset the password?

---

<div class="post-metadata">

**Author:** ![CarlHolmes](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/carlholmes/32/2814_2.png) [@CarlHolmes](https://forums.knack.com/u/CarlHolmes)\
**Post date:** [June 4, 2024, 5:39am UTC](https://forums.knack.com/t/how-can-we-reset-the-password-through-api/17302/2 "2024-06-04T05:39:24Z")

</div>

If your app is a Knack app then you should be able to add a link to a form so the user can change their password or they can already access it through Account Settings, next to their logged in name.

Otherwise you could right click and copy the link to the “forgot” password link on the login page and then create a html button (add a rich text field to your view and copy the below code into the html editor) pointing the user to the reset page.

```auto
<a href="https://www.example.com"><button style="background-color: red; color: white; border: none; padding: 10px 20px; font-size: 16px; cursor: pointer;">Reset Password</button></a>

```

---

<div class="post-metadata">

**Author:** ![Keshav](https://avatars.discourse-cdn.com/v4/letter/k/b5e925/32.png) [@Keshav](https://forums.knack.com/u/Keshav)\
**Post date:** [June 4, 2024, 9:09am UTC](https://forums.knack.com/t/how-can-we-reset-the-password-through-api/17302/3 "2024-06-04T09:09:52Z")

</div>

Hi @CarlHolmes,

Thank you so much for the response.

What i want is to serve as a api to my mobile app. In which user can reset password directly through app  
without visiting the knack url.

---

<div class="post-metadata">

**Author:** ![CarlHolmes](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/carlholmes/32/2814_2.png) [@CarlHolmes](https://forums.knack.com/u/CarlHolmes)\
**Post date:** [June 4, 2024, 3:30pm UTC](https://forums.knack.com/t/how-can-we-reset-the-password-through-api/17302/4 "2024-06-04T15:30:38Z")

</div>

Hopefully, someone more highly skilled will be able to help you 🤞😉

---

<div class="post-metadata">

**Author:** ![Sunny\_Singla](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/sunny_singla/32/1007_2.png) [@Sunny\_Singla](https://forums.knack.com/u/Sunny_Singla)\
**Post date:** [June 4, 2024, 5:42pm UTC](https://forums.knack.com/t/how-can-we-reset-the-password-through-api/17302/5 "2024-06-04T17:42:14Z")

</div>

Hello Keshav,

It’s Simple In knack create a user screen with action link to edit users. and simply use API to update records using “PUT”

1. First ask user to enter email then make GET API to search records after search
2. in edit page just add password field ( and place a “PUT” Api to update)

Regards,  
Sunny Singla  
[ssingla1985@gmail.com](mailto:ssingla1985@gmail.com)  
+919855089359
