404 & 400 error code when using Vapi and GHL workf...
# support
b
I have the proper phone id, the proper assistant ID I think the issue i am running into is my URL i have https://api.vapi.ai/v1/call so far but ive seen different... can someone help? content type is also application/json authorization Bearer {{MY_API_KEY}}
here is my payload by the way "{ "type": "outboundphonecall", "assistantId": "b3bd0eb8-e5d0-4fd3-b46e-92194d6b4fa0", "phoneNumberId": "52dd6afe-0082-47bb-97c4-7678278a7b7e", "customer": { "number": "+11234567890", "name": "Test" } }
k
Post phone with only assistantId, phoneNumberId, and customer number, remove "type" and "customer.name" to avoid errors..
b
@Kings_big💫 so only use assistantID, phone number id, and customer number. My url is correct as well?
k
Yes, just include assistant ID, phoneNumber ID, and customer number in the payload, and remove all other fields..
b
Thank you for your help I’ll try that @Kings_big💫
k
Your URL is correct, visit here for guide https://docs.vapi.ai/api-reference/calls/create
p
Glad it fixed