eastern-cyan•3h ago
variable in api tool
I believe I have set this up correctly but the variable in my api request tool url will not populate the dynamic data. I am successfully setting the variable from the HTTP request which initiates the call. I can successfully query the get URL value when I hard code a static value into the URL. But the moment I add the variable to the URL it doesn't recognize it and sends the literal variable text to the GET URL which returns nothing.

2 Replies
Try this:
Make sure your API tool defines the variable in the
Check your tool config and redeploy if needed.
(Source: information found in the Default Tools documentation)
Make sure your API tool defines the variable in the
body schema, even for GET requests. For example:
This ensures {{ten_digit}} is recognized and replaced in your URL.Check your tool config and redeploy if needed.
(Source: information found in the Default Tools documentation)
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
eastern-cyanOP•3h ago
Okay, trying now.
That worked! Needed to set the request body even for a get. Thanks!