kozakoZ
05/14/2024, 6:49 PMVapi Support
05/14/2024, 6:49 PMVapi Support
05/14/2024, 6:49 PMphone_number, use phone_number without curly braces.
3. If you are experiencing issues with parameter names being sent in the wrong format, like "start_time" vs. "startTime", this could be due to model hallucination. A possible solution is to handle both formats within your webhook [(2)]() .
Here is an example of how to define and send the payload correctly in cURL:
shell
curl --request POST \
--url https://api.vapi.ai/call/phone \
--header 'Authorization: Bearer <your_token>' \
--header 'Content-Type: application/json' \
--data '{
"customer": {
"number": "your_phone_number"
},
"phoneNumber": {
"twilioPhoneNumber": "your_twilio_number"
},
"assistantId": "your_assistant_id",
"serverUrl": "your_server_url",
"metadata": {
"phone_number": "1234567890"
}
}'
[(1)]() , [(2)]()
Make sure the serverUrl is correctly set up to receive and handle the incoming data. If you continue to experience issues, double-check the webhook logs to see if the payload is being received and processed as expected.Vapi Support
05/14/2024, 6:49 PMSahil
05/15/2024, 8:17 AMkozakoZ
05/15/2024, 5:26 PMSahil
05/15/2024, 5:31 PM