I read all the documentation about environment variables, but I still fail to solve my problem.
I created a Workflow Environment Variable with the name "API_KEY", added the key as value and checked Don't Export.
Next, I created a "Run Script" action (/bin/bash, with input as argv, running instances sequentially) that looks pretty much like this but unfortunately doesn't work. Seems like I use $API_KEY incorrectly because if I replace $API_KEY with the key itself, it works.
curl -H 'Authorization: Fooapp-authtoken $API_KEY' https://fooapp.com/api/contacts
Hope somebody can clarify, what I'm doing wrong.
Thanks