Variable interpolation seem not works for the URL (Tool API request)

Hi VAPI Team,

I’m encountering an issue when using dynamic variables in a tool that makes an HTTP request.

Here’s the situation:
  • I created a custom tool of type apiRequest that performs a simple HTTP call.
  • The tool uses Liquid syntax (e.g. {{variable}}) to insert dynamic parameters.
  • When I place these variables inside the Request Body, they are correctly resolved at runtime.
  • However, when I place the same variables directly inside the URL (for example: https://api.example.com/data/{{id}}), the variable is not replaced and stays as {{id}} in the final request.It seems that variable interpolation currently works for the body but not for the URL field of the tool definition.Could you please confirm if this is a known limitation, or if there’s a specific way to ensure variables in the URL are properly evaluated (for example, through a particular Liquid filter, parameter declaration, or encoding rule)?Any guidance or clarification would be greatly appreciated, especially if there’s a recommended best practice for passing dynamic parameters in the URL with VAPI tools.Thanks in advance for your help!Best regards.
Was this page helpful?