ERROR: Bad request - please check your parameters when using VAPI and Twilio

Describe the problem/error/question

Hi, new ERROR: Bad request - please check your parameters.

I have this error when generating the Post HTTP Request. the following message appears:

What is the error message (if any)?

Bad request - please check your parameters

Full message

400 - "{\"message\":\"Couldn't Create Twilio Call. Twilio Error: Authenticate\",\"error\":\"Bad Request\",\"statusCode\":400}"

Request

{ "body": { "assistantId": "7429e26c-0b3a-4c9f-bea0-9f4132d23c16", "phoneNumberId": "ccb3a058-94da-42c8-9213-889e1d55a7cf", "customer": { "number": "+19178175536" } }, "headers": { "authorization": "**hidden**", "content-type": "application/json", "accept": "application/json,text/html,application/xhtml+xml,application/xml,text/*;q=0.9, image/*;q=0.8, */*;q=0.7" }, "method": "POST", "uri": "https://api.vapi.ai/call", "gzip": true, "rejectUnauthorized": true, "followRedirect": true, "resolveWithFullResponse": true, "followAllRedirects": true, "timeout": 300000, "encoding": null, "json": false, "useStream": true }

Other info
Item Index 0

Node type n8n-nodes-base.httpRequest

Node version 4.2 (Latest)

n8n version 1.88.0 (Cloud)

Time 5/22/2025, 11:16:30 AM

Stack trace

NodeApiError: Bad request - please check your parameters at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js:597:21) at processTicksAndRejections (node:internal/process/task_queues:95:5) at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:681:27) at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:915:51 at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:1246:20

Please share your workflow

Share the output returned by the last node

This is what was doing when it was working:

1 Like

Hey,

I was going to mention List Calls | Vapi and -H “Authorization: Bearer ”

which seems you have included ure bearer token inside the above code, I would delete as other may try access it btw,

also, I would recommend check here for the payload needed it says it requires “This endpoint expects an object.”

Create Call | Vapi.

Also, I noticed that “json”: false, you could enable this to true, might help fix the issue.

@King_Samuel_David Thank you for the Bearer heads up.

For this “This endpoint expects an object.” - shouldn’t this part send the object?

You also said: “I noticed that “json”: false, you could enable this to true, might help fix the issue.” - Where can I change that to true inside n8n?

1 Like

Hey @Atomic_Enrollment_Cl Yes that working good, but it seems u auth with

Couldn't Create Twilio Call. Twilio Error: Authenticate\
seems to be the main error

I tested what u have with an assistance, and number but this number was connected via vapi default and not twilio.

But maybe look at vapi settings for twillio and reauth on that side.

:slight_smile: hope this helps.