How to handle OTP scenario in api calls?

I have two post request in one I enter the mail id and in other I put the otp received on that email in the body
Each time I need to manually copy the otp from my mail box
So how can I automate that otp ? if can I use variables or something
Please help as I am a beginner