Possible to use local storage define global parameters for a REST API?

Hi there,

We have a REST API that we need to access, which uses an ‘apikey’ URL parameter for authentication. As we need to use this in several apps, I created a module (awesome new feature, btw!) that prompts a user for their apikey, and then stores it in local storage.

It looks like I can’t use the variable from localstorage in the API definition, to always set the apikey parameter, but instead we have to set it for each individual request. Is there any way to access variables like this in the API definition?



Hello! You are correct - unfortunately, we do not support this at the moment. Looks like you’ve already found the best work around - that is, adding them into individual queries inside of your app. For now, I’ll move this post to the Feature Request section.

1 Like