Hey! I would like to know how can I trigger the fo...
# support-questions-legacy
d
Hey! I would like to know how can I trigger the forgot password, I follow up this doc (https://supertokens.com/docs/emailpassword/custom-ui/forgot-password#changing-the-password-reset-link), but after setting up the custom email, how can I trigger it? I try calling the endpoint but im not sure, im not using a frontend sdk, just testing everything from postmam, and also using python/fastapi on the backend
r
Hey @dleiva04
Which api are you calling via postman?
d
GET: $base/user/reset-password
I was trying also to call the send email function, from any other endpoint, but not sure how to do it, i was able to generate the token, but I dont know which function is the one that actually send the email
I was calling emailverification.recipe_implementation, something in there, i think
r
Which recipes are you using?
d
EmailPassword
r
Right. So there should be a function like emailpassword.asyncio.send_email (as well as a syncio version of it) which you can call
This page has an example of how you can call it.
Scroll down to the section which uses the send_email function from the emailpassword recipe.
But why are you creating your own api for this? We already expose an api which you can call from the frontend.
d
Because im using flutter
r
But you can still call the api we expose from the frontend
You don’t need to make your own api
d
What's the api?
r
In this page, https://supertokens.com/docs/emailpassword/custom-ui/forgot-password, click on the mobile tab for the code snippets. You will see the curl command
d
Ohh ok ok, let me check those
Thank you!
4 Views