Gregb
03/15/2025, 10:51 AMVapi Support Bot
03/15/2025, 10:53 AM{{input.api_key}}
.
For example, you can use dynamic variables like this in query parameters:
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)