why doen't vapi offer dynamic headers?can't find a...
# support
g
why doen't vapi offer dynamic headers? can't find a way to make this dynamic like {{input.api_key}} and ai fill this
v
Hi there! 👋 Based on the documentation I've found, Vapi currently supports dynamic variables in query parameters and request bodies, but doesn't explicitly support dynamic placeholders directly in headers like
{{input.api_key}}
. For example, you can use dynamic variables like this in query parameters:
Copy code
json
"queryParameters": {
  "param1": "{{dynamicValue1}}",
  "param2": "{{dynamicValue2}}"
}
As a workaround, you could: 1. Use
assistantOverrides
with
variableValues
to replace placeholders in your API requests [docs.vapi.ai/assistants/dynamic-variables](https://docs.vapi.ai/assistants/dynamic-variables) 2. For authentication specifically, use the
x-vapi-secret
header which is recommended when API calls aren't respecting manually set headers [discord thread](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1339941602872918068) There appears to be a known issue with saving headers through the Vapi interface, and the suggested workaround is to send headers via direct API calls instead. I wasn't able to find specific information about why Vapi doesn't offer dynamic headers at this time. Sources: - [Dynamic Variables Documentation](https://docs.vapi.ai/assistants/dynamic-variables) - [Discord Thread on Headers](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1339941602872918068) - [Discord Thread on API Calls](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1344671338249453660)
v
Feel free to add it on the roadmap