Hi everyone,
I’m facing an issue with my API calls and hoping someone can point me in the right direction. Here’s a quick breakdown of what I’ve set up so far:
AccessToken API Call: This retrieves an authentication token using an authentication code.
RefreshToken API Call: This generates a refresh token using the token from the first call.
The issue arises when I re-test the API call. The refresh token keeps changing, and because of this, my subsequent API calls no longer work.
I’ve read that the refresh token should be stored in a variable, particularly in App State, but I’m running into trouble. When I try to create a variable in App State, I can’t find it when I go to API Calls > Define API Call > Body > Parameters > Value Source > Select Variable. The only option I’m given is to Create Variable, but I’m unsure how to proceed after that.
My question: How can I store the refresh token in a variable so that I can use the updated token in subsequent API calls? I’ve spent quite a bit of time searching for a solution, but I’m still stuck on how to reference the created variable in the API call parameters.
Any advice or tips would be greatly appreciated!
Thanks in advance,
Regards
Emmanuel Katto