*** title: How to save a response as a variable and reuse it for another API call description: >- You can achieve this using Postman’s JavaScript APIs in your request scripts . The pm object provides most of the functionality for testing your request and ... --- You can achieve this using Postman’s [JavaScript APIs in your request scripts](/docs/tests-and-scripts/write-scripts/postman-sandbox-reference/overview/). The **pm** object provides most of the functionality for testing your request and response data, the response data is accessible in the **Tests** tab of the request, as the scripts will be executed once a response has been received. You can use the **pm.response** object to access the data returned in the response for the current request. See a real-life example exploring [this collection](https://www.postman.com/postman/workspace/postman-answers/collection/9215231-47464531-0c3f-4b21-94b8-71e48025f88f). *** Have more questions? [Submit a request](/help/submit-request) ***