Nidhi Sharma
04/07/2025, 4:31 AMVapi Support Bot
04/07/2025, 4:33 AMtoolCallId
and result
fields
- The result
field should contain the response data directly as a string, without nested JSON
- Make sure the toolCallId
in your response matches the one sent by VAPI in the initial request
For example, this format is considered correct:
json
{
"results": [
{
"toolCallId": "call_29386782601936",
"result": {
"message": "The preferred appointment time is unavailable, I have the following timeslots",
"slots": {
"2025-01-14": [
"2025-01-14T15:30:00-05:00",
"2025-01-14T17:00:00-05:00",
"2025-01-14T17:30:00-05:00"
]
},
"traceId": "40acdbde-31f5-477b-baf1-b432fd04d9a1"
}
}
]
}
## 2. Check Content-Type Headers
According to the documentation, confirm that the Content-Type
header of your webhook response is set to application/json
.
## 3. Verify Network Connectivity
Ensure there are no connectivity problems or misconfigurations in your webhook setup that might prevent the response from reaching VAPI.
## 4. Check Server Logs
Examine your Nest.js server logs for any errors that might be preventing the webhook from processing correctly or sending back a response.
## 5. Test Your Endpoint ManuallyVapi Support Bot
04/07/2025, 4:33 AMPOST
endpoint.
Would you be able to check these items and let me know if any of them help resolve your issue or if you need more specific guidance?
Sources:
- [Debugging webhook API URL integrations](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336399188665040968)
- [Troubleshooting steps for webhook API URL integrations](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1330221332452999321)
- [Common issues with booking slots using APIs](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1325000684231196775)
- [Reasons for incorrect booking slot availability](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1327481613004701779)
- [Troubleshooting Nest.js applications interacting with APIs](https://docs.vapi.ai/server-url/developing-locally)Kyle Brunker
04/07/2025, 10:18 PM