How to create password recovery URL to send through SMS

Hi, on my app we use a mobile phone to validate users and recover passwords, so I would like to send an SMS to the user with a link to where they can reset the password, but I don’t know how to get that URL, I know that you can get send the URL to an email address using ‘Accounts.sendResetPasswordEmail(userId, [email])’ but I would like if there is a method or a way to get only the url with the token included, and then just send that to the user inside an SMS, thanks in advance!