Hi everybody!

Hi everybody! Been seaching the docs but didnt get it How can i use secrets and variables inside REST scripts?
7 Replies
matiasbpg_25163
matiasbpg_25163OP2y ago
is it possible?
Tiago Serafim
Tiago Serafim2y ago
You have to pass it as args variable('u/username/openai_token') or call the WM REST API from inside the script.
matiasbpg_25163
matiasbpg_25163OP2y ago
Im using the REST script in an app. How can i access the variable in the app to pass is as args?
Tiago Serafim
Tiago Serafim2y ago
Or as string $var:u/username/token.
matiasbpg_25163
matiasbpg_25163OP2y ago
perfect! so just using the variable string as the arg in the app should work?
Tiago Serafim
Tiago Serafim2y ago
Set it as an arg on the script config and WM will pass the correct value to your script Yes
matiasbpg_25163
matiasbpg_25163OP2y ago
nice thanks, im gonna try that It worked wonderfully! I would have loved that the app editor allowed to connect input to variables instead of inserting the text value for the variable. I think that could improve the UX

Did you find this page helpful?