# Request param from previous api result

**URL:** <https://forum.katalon.com/t/request-param-from-previous-api-result/35160>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [October 23, 2019, 10:17am UTC](https://forum.katalon.com/t/request-param-from-previous-api-result/35160 "2019-10-23T10:17:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sang](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/sang/32/6357_2.png) [@sang](https://forum.katalon.com/u/sang)\
**Post date:** [October 23, 2019, 10:39am UTC](https://forum.katalon.com/t/request-param-from-previous-api-result/35160/2 "2019-10-23T10:39:33Z")

</div>

Hi [agnessiregar16](http://forum.katalon.com/u/agnessiregar16)

You can extracting data from the previous API and assign it to the Global Variable, and then reuse the global variable for the other request.

> [@Store AUTH TOKEN in Global Variable](http://forum.katalon.com/t/store-auth-token-in-global-variable/10743/6):
>
> Hi [Julian\_Wladyczynski](http://forum.katalon.com/u/Julian_Wladyczynski) Please retry by following this step: 1. Assigned access\_token value to the GlobalVariable response = WS.sendRequest(findTestObject('Employees/Login backoffice and get access token')) WS.verifyResponseStatusCode(response, 200) JsonSlurper slurper = new JsonSlurper() Map parsedJson = slurper.parseText(response.getResponseText()) String access\_token = parsedJson.access\_token GlobalVariable.Token = access\_token 2. On the GET request, set the Variable as below.

---

_[View the full topic](https://forum.katalon.com/t/request-param-from-previous-api-result/35160)._
