API Request Body Glitch
# support
j
I'm currently experiencing an issue with the API request tool where it's copying the field for whatever request body variable I position at the top, to every other variable. The picture I attached shows what I'm trying to explain, whatever request body (e.g location, contactId, etc) I podition at the top in the request body section, that's the one that gets cloned to all others Anyone else had this same problem? Any help is appreciated https://cdn.discordapp.com/attachments/1442192072223232123/1442192072613429349/image.png?ex=69248988&is=69233808&hm=4cacf4f4cf699da48cf933a71acba00fd2dce9d0d2013e5b308318d1dd8eb6da&
c
Hi there, Thank you for your message. Our team is currently out of the office. We operate Monday through Friday, from 9:00 AM to 8:00 PM Pacific Standard Time (PST). We’ll get back to you as soon as possible during our normal business hours. If your message is urgent, please mark it accordingly or include “URGENT” in the subject line, and we’ll do our best to respond promptly. Warm regards, Vapi Customer Support Team
a
I have a feeling that is just for the test tool, literally like 2-3 weeks ago the test tool function on the tools dashboard wouldn't even let you input variables at all.
They're probably trying to implement it and it's not completely done yet
j
damn fr? ill have a go now
c
Hi Jake, To make a custom API call using the updated
ApiRequest
node, you can configure it in your workflow with features like POST requests, async support, and task status messaging. The previous
HttpRequest
node is deprecated and should be migrated to
ApiRequest
. Here's the process to configure the
ApiRequest
node: 1. Node Declaration:
Copy code
json
   {
     "type": "api-request",
     "config": {
       "url": "https://api.example.com/endpoint",
       "method": "POST",
       "headers": {
         "Authorization": "Bearer YOUR_TOKEN",
         "Content-Type": "application/json"
       },
       "body": {
         "key": "value"
       },
       "isAsync": true
     }
   }
2. Configuration Parameters: - **url**: The endpoint for your API call. - **method**: Typically
POST
, but can be
GET
, etc. - **headers**: Any required request headers. - **body**: JSON payload for the POST request. - **isAsync**: Set to
true
for async requests if needed. For more details, view the [changelog](https://docs.vapi.ai/changelog/2025/2/1#apirequest). If you're facing any errors, ensure that your
backoffPlan
is correctly set for retries, with customizable strategies and delays [here](https://docs.vapi.ai/changelog/2025/2/1#new-backoff-and-retry-controls). If any issues persist, let me know, and we'll further investigate.
2 Views