Getting api 400 bad request error with GHL
# support
s
i have connected GHL to Vapi, i have also tried default prompt to test from https://docs.vapi.ai/tools/go-high-level, still getting same error. Create Appointment [ { "type": "text", "text": "Error: API Error: 400 Request failed with status code 400" } ] 08:46 Response Details [ { "type": "text", "text": "Error: API Error: 400 Request failed with status code 400" } ] how to solve this?
v
To help troubleshoot the 400 error, could you share the exact fields and values you are sending when trying to create the appointment (especially
calendarId
,
contactId
, and any other required fields)?
This will help identify if any required data is missing or incorrectly formatted according to the [GoHighLevel integration guide](https://docs.vapi.ai/tools/go-high-level). Source: - [GoHighLevel Integration Guide](https://docs.vapi.ai/tools/go-high-level)
s
here is call log - Hi. This is Lucas from Acme Roofing. Is this User Yes. Assistant great. I have your full name and email address, please? User Yeah. It's, uh, sync it. And, uh, Assistant It seems like User sync it. Assistant I appreciate that, but I also need your email address to proceed. Can you please provide it? User It's Ankit at the rate Gmail dot com. Get Duplicate Contact Completed successfully 09:01 Assistant Thank you for providing your information, Syncit. I have created your contact with the email address, anne kit at g mail dot com. And your contact ID is y o f x I v e m n 7 s q 2 w I s 3 1 d r. Now could you please let me know your preferred date and time for the appointment? User Monday, 2 PM. Get Free Slots { "error": "MCP error -32602: MCP error -32602: Invalid arguments for tool get_free_slots: [\n {\n \"code\": \"too_small\",\n \"minimum\": 1,\n \"type\": \"string\",\n \"inclusive\": true,\n \"exact\": false,\n \"message\": \"String must contain at least 1 character(s)\",\n \"path\": [\n \"timeZone\"\n ]\n }\n]" } 09:01 User Yeah.● Get Free Slots Completed successfully 09:01 Assistant It appears that there are no available slots for Monday at 2 PM. However, here are the available times on Monday. 3 PM, 3 30 PM, 4 PM, 4 30 PM. 5 PM, 5 30 PM. User Call. Create Appointment [ { "type": "text", "text": "Error: API Error: 400 Request failed with status code 400" } ] 09:01 User 4 PM. Assistant It seems there was an error while trying to book the appointment. Let's double check the time for the appointment. You selected 4 PM, which translates to 16 UTC. This means that the appointment will end at 4 30 PM. I'm proceeding to book it● Create Appointment [ { "type": "text", "text": "Error: API Error: 400 Request failed with status code 400" } ] 09:02 Response Details [ { "type": "text", "text": "Error: API Error: 400 Request failed with status code 400" } ] Assistant I'm pr https://cdn.discordapp.com/attachments/1431120171891949769/1431123829811580959/Screenshot_2025-10-24_at_9.03.01_AM.png?ex=68fc456e&is=68faf3ee&hm=408075eec5f36fac35a994a255f325d1d226d35936819929a838bddd3f1a5c2c&
c
Hi, could you please provide a call id where you experienced this issue? We would like to review the logs to identify the cause.