Page 1 of 1

API Connection JSON with variable

Posted: Thu Aug 15, 2024 8:53 pm
by tbagby
Hi -

I am trying to make an API connection (JSON). I am using the "File," "JSON" option. In the headers, I enter the key and for the value, if I enter the actual key, the connection works fine and the data is returned. However, if I use a variable {{apikey}} where I've stored the key as string, no data is returned. I've tried the variable entry as {apikey} and {{apikey}}. I think double-curly braces is correct. Neither works though. Any suggestions?

I also tried using a connection with REST / OData with the API URL and custom headers and the connection test fails every time.

Thanks.

Re: API Connection JSON with variable

Posted: Thu Aug 15, 2024 11:04 pm
by Lech Kulikowski
Hello,

Unfortunately, at the current moment, variables are not supported in headers.

Thank you.

Re: API Connection JSON with variable

Posted: Fri Aug 16, 2024 3:44 pm
by tbagby
Thanks!

Re: API Connection JSON with variable

Posted: Mon Aug 19, 2024 11:21 am
by Lech Kulikowski
Hello,

You are welcome.