https://retellai.com/?utm_source=discord&utm_medium=seo logo
i need to pass a literal string to a query paramet...
# ❓・ai-evy-support
p
@AI Evy i need to pass a literal string to a query parameter of a function named apikey, but when I write my apikey in the logs I see another value for that parameter. How can I pass the correct/literal value?
a
Thanks for tagging me @petxi79_50047. I'll look through relevant sources and get back to you shortly.
### Answer If you want to pass a literal string value (such as your actual API key) as a query parameter in a Retell AI custom function, you should enter the value directly in the query parameters field for that function, not wrapped in curly braces or as a dynamic variable. For example, set the parameter as apikey: your_actual_api_key (without {{ }}) [(1) ]() [(2) ]() . If you use curly braces like {{apikey}}, Retell will try to substitute it with a dynamic variable, which may lead to a different value appearing if a variable with that name is set or if it's unset, you could see the literal text {{apikey}} [(1) ]() [(2) ]() [(3) ]() [(4) ]() . So, to ensure the literal value is sent: - In the query parameters config for your custom function, enter the API key value directly (e.g., apikey: sk-1234abcd5678efg) . - Do not use {{apikey}} unless you really want to use a dynamic variable. If you are still seeing a different value in the logs, double-check that you have not accidentally set a variable with the same name, or that the field is not being overwritten by prompt logic or another node [(4) ]() .
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Integrate any system with custom function](https://docs.retellai.com/build/single-multi-prompt/custom-function) [[3] How to pass query URL parameters from conversation to GET request](https://discord.com/channels/1186424376300679209/1384523020110008420) [[4] dynamic variables in function query parameters are not parsed](https://discord.com/channels/1186424376300679209/1414306451656151291) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.