POST API get value from variable

Hallo,

I get the error run API in katalon with variable input

" Katalon TestOps: Unexpected response, URL: https://admin.katalon.com/api/v1/license-keys/activate?machineKey=b5d5364786b8eaeb8395cf80966abb38&ksVersion=9.0.0&organizationId=&sessionId=de05d9f1-077a-4075-b7dd-f7d05d1e4ff7&hostname=LAPTOP-95N5CJET&package=KSE&katalonEdition=STANDALONE, Status: 401, Response: {“error”:“invalid_token”,“error_description”:“Access token expired”}

Access token expired

14:21:54.740 [ModalContext] INFO com.kms.katalon.core.webservice.common.HarLogger - HAR: C:\Users\1878\AppData\Local\Temp\har6322125887814670905\requests\ModalContext\14.har "

Steps 1:
Run API 1, from API 1 get sessionid

Steps 2 :
Put SessionID in API 2

Please anyone know how to put value in parameter from API 1 to API 2 ?

Thankss yuuu

1 Like

Hi,

I found this tutorial: https://www.youtube.com/watch?v=RPZ-hGwwGmU quite long ago so maybe the UI is outdated but please try this logic.