n8n HTTP Request node ERROR!!!
# support
d
Hi everyone! 👋 I’m running into a problem while trying to trigger a Vapi outbound call using the HTTP Request node in n8n. 🧩 What I'm trying to do: I want to use n8n to call Vapi’s API and trigger an outbound phone call to a user. Pretty straightforward automation. ✅ What I’ve done so far: Set up the n8n workflow using the HTTP Request node Tested the Vapi API directly using the API Reference – it works perfectly there! Copied the working JSON payload from Vapi into the n8n HTTP Request node without any changes ❌ The problem: When I hit “Execute Node” in n8n, I get the following error: 400 - { "message": "Couldn't Get Assistant. Need Either
assistant
,
assistantId
,
squad
, Or
squadId
.", "error": "Bad Request", "statusCode": 400 } I’ve searched around and found that this usually means something's missing from the request body – but I’m confused because the exact same request works fine inside Vapi’s own API tester. Anyone knows what might be going wrong when sending it from n8n? Thanks a lot in advance 🙏
c
Hi, could you please provide the call ID where you experienced this issue? We would like to review the logs to identify the cause. Also, could you share the org ID? You can find it [here](https://dashboard.vapi.ai/org/settings). This will help me get more details about it.
This error happens because the payload needs to use "customers" an array instead of "customer", and the HTTP Request node must send the body as raw JSON, not form or nested data. Switch the body format to JSON mode, ensure you’re including "assistantId" and "phoneNumberId", and wrap the phone number inside a "customers" array then it should work..
d
THIS CAN WORK!!!!!!!!!!! I understand the error cause, because I enter the JSON formate to "Send Query" not "Send Body". Thanks for your help, it help me a lot.
c
Marking this ticket as Solved âś…
2 Views