How to make recover password automation script in Katalon

I am interested to prepare automation script for password recovery scenario. I know all basic scripting like enter user name, password and to click to forget password. I do not know once we click the forgot password link, system send password resetting link on registered email. So how can i get that link by using automation test script? I read on internet and we need API call to get that reset email. So if anybody know please guide me.

Regards
Samta