I\'m using Postman to test and play with an API.
For the login url, the API requires sending a POST request with username and password as fiel
username
password
Store the cookie value you want to use in a global variable.In Tests tab of login request, write
Tests
postman.setGlobalVariable('key', postman.getResponseCookie("cookieName").value);
Pass along with the value in the Headers tab as a cookie in get user request:
Headers
Cookie | cookieName={{key}}