Password forgotten option in API

is there a way to build a password forgotton function with an API call?
I just found some functions in Docs for Admin users. Can anybody tell me something about?
Best regards,

Using the built in API, you can call the execute-actions-email method here Keycloak Admin REST API with the ["UPDATE_PASSWORD"] request body, and it will send the user an email with an action token for them to reset their password (without having to know the existing password). That is the closest you can do without implementing a custom flow.