Join Discord
Powered by
In API request tool, can we switch **
# general-english
h
Hans
07/30/2025, 4:48 PM
In API request tool, can we switch
Request URL
by
variable
. For example, We set
Request URL
as
https://api-uat.stayntouch.com/connect/reservations
But this is development URL. For production, we need to use
https://api.stayntouch.com/connect/reservations
https://cdn.discordapp.com/attachments/1211484481848873020/1400158080251068558/image.png?ex=688b9e54&is=688a4cd4&hm=484f6dcddb1cd649488bcd2701b6547eb0b6d3e5e2be7b11960fd3b2a934b4be&
k
Kings_big💫
07/30/2025, 7:48 PM
Yes, you can switch environments by using a variable like {{base_url}}/connect/reservations and setting base_url to the desired domain dev or prod..
h
Hans
07/30/2025, 9:19 PM
I tried this. But tool update fails.
https://cdn.discordapp.com/attachments/1400158080096010392/1400226215247220796/image.png?ex=688c8688&is=688b3508&hm=fb2d769a0ae46419981edad55284c67df09721990351297b933601be157fd0f7&
Hans
07/31/2025, 3:41 PM
Please help me.
@Kings_big💫
Hans
08/01/2025, 2:02 AM
Hi,
@Kings_big💫
k
Kings_big💫
08/01/2025, 8:59 AM
Vapi does not support dynamic variables in the Request URL, so you must use a full static URL, only query and body parameters can use {{variable}} syntax..
h
Hans
08/01/2025, 8:52 PM
Ok, thank you very much.
2
Views
Previous
Next