# How to handle OTP scenario in api calls?

**URL:** <https://community.postman.com/t/how-to-handle-otp-scenario-in-api-calls/60716>\
**Category:** Help Hub\
**Tags:** authentication\
**Created:** [May 6, 2024, 5:54pm UTC](https://community.postman.com/t/how-to-handle-otp-scenario-in-api-calls/60716 "2024-05-06T17:54:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonuenpass](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@sonuenpass](https://community.postman.com/u/sonuenpass)\
**Post date:** [May 6, 2024, 5:54pm UTC](https://community.postman.com/t/how-to-handle-otp-scenario-in-api-calls/60716/1 "2024-05-06T17:54:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [June 5, 2024, 5:55pm UTC](https://community.postman.com/t/how-to-handle-otp-scenario-in-api-calls/60716/2 "2024-06-05T17:55:01Z")

</div>

Closed on June 5, 2024, 5:55pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
