Forgot Password With Api

Hi there, i hope you're all okay.

I have a little question with resetting password.

I'm developping a mobile application, so i'm using CsCart API, nothing too hard right there.

Now i'm pretty far in the developpment, i arrived in the account management.

I was wondering one thing : how can the user retrieve / use the forgot password function with API based communication with the server ?

As far as i looked, i don't have any other idée than putting either a link to the main site or an ugly iframe to do it.

Regards.