# Add Timeout before running the next API

**URL:** <https://community.postman.com/t/add-timeout-before-running-the-next-api/77207>\
**Category:** Help Hub\
**Tags:** collections, json\
**Created:** [March 18, 2025, 10:58am UTC](https://community.postman.com/t/add-timeout-before-running-the-next-api/77207 "2025-03-18T10:58:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yashodhal](https://avatars.discourse-cdn.com/v4/letter/y/c89c15/32.png) [@yashodhal](https://community.postman.com/u/yashodhal)\
**Post date:** [March 18, 2025, 10:58am UTC](https://community.postman.com/t/add-timeout-before-running-the-next-api/77207/1 "2025-03-18T10:58:36Z")

</div>

I am running three requests in my Postman collection. I want to delay the execution of the third request by 3 minutes after running the second request. How can I achieve this?

**Reason for the 3-minute delay:**  
In my system, a process runs automatically every 3 minutes. I am adding a domain using an API call, and it gets added with a ‘Pending’ status. The process I mentioned earlier cannot be triggered manually via Postman; it runs automatically. After this process runs, the domain status changes to ‘In Progress.’ I use the third API request to verify that the status has been updated.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [March 21, 2025, 3:42pm UTC](https://community.postman.com/t/add-timeout-before-running-the-next-api/77207/2 "2025-03-21T15:42:22Z")

</div>

Hey @yashodhal 👋

Welcome to the Postman Community! :postman:

You _could_ make use of the [setTimeout](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout) function here, by placing it in the _Post-response script_ of the second Request:

```javascript
setTimeout(function () {
    console.log("Waiting for 3 minutes");
}, 180000);

```

That would wait the specified amount of time (in milliseconds) and then run the next Request. That’s the most basic thing that could be done, this should hopefully give you a place to start.
