title: Pre-Request Script in Postman
body: <p>How to call a POST API request (Login API having request body with Username &amp; Password field) from pre-request script tab of an another GET API which uses token from above API's body in its request url. </p>
  
  <p>Login API : POST method; request body : username and password; response body: token.
  Get Customer Records API : GET method; request URI : /token/</p>
  
  <p>Want to cover this end to end scenario in one test only in Postman.
  Can please anyone help me with the pre-request script for this? How should I invoke Login API?</p>