# API token setup help / Global Variable

**URL:** <https://forum.katalon.com/t/api-token-setup-help-global-variable/43979>\
**Category:** API Testing\
**Tags:** api-testing, katalon-studio\
**Created:** [May 28, 2020, 9:38pm UTC](https://forum.katalon.com/t/api-token-setup-help-global-variable/43979 "2020-05-28T21:38:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashraf.madina](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ashraf.madina/32/20464_2.png) [@ashraf.madina](https://forum.katalon.com/u/ashraf.madina)\
**Post date:** [May 28, 2020, 9:38pm UTC](https://forum.katalon.com/t/api-token-setup-help-global-variable/43979/1 "2020-05-28T21:38:56Z")

</div>

I’m trying to move API tests from POSTMAN to Katalon but I been really getting frustrated due to Katalon setup and my own lack of knowledge.

I’m hoping someone can guide me thru these issues I’m having.

1. I’m trying to setup the url as global, but have no luck. i followed some of the instructions written here… but that isn’t working.

2. Second thing is, I need to setup my token as global so it applies to all the tests in http header… but i get my token by logging in with a POST method. It expires in 1-day. I saw some posts about how to do it, but it’s very vague.

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/e/e5dc60b81520d1ef6d99baae475c32806b98570a.png)  
 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/f/fc8e07e5eb231b07a05cf1b357724aa1fdb95a13.png)

---

<div class="post-metadata">

**Author:** ![duyluong](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/duyluong/32/1116_2.png) [@duyluong](https://forum.katalon.com/u/duyluong)\
**Post date:** [May 29, 2020, 3:50am UTC](https://forum.katalon.com/t/api-token-setup-help-global-variable/43979/2 "2020-05-29T03:50:43Z")

</div>

@ashraf.madina

The endpoint should be:

```auto
${dev_url}/member/login

```

---

<div class="post-metadata">

**Author:** ![ashraf.madina](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ashraf.madina/32/20464_2.png) [@ashraf.madina](https://forum.katalon.com/u/ashraf.madina)\
**Post date:** [May 29, 2020, 4:06am UTC](https://forum.katalon.com/t/api-token-setup-help-global-variable/43979/3 "2020-05-29T04:06:57Z")

</div>

Oh crap, how did i not notice that typo… that is silly. I thought something was broken in Katalon as the pop-up error message is strange.

Thanks, But my biggest blocker is getting the token with that POST method and then fetching it and applying it globally for all other API requests/tests to be run after. Any input on that?
