HiTMaN
03/28/2025, 11:46 PMVapi Support Bot
03/28/2025, 11:47 PMjson
{
"results": [
{
"toolCallId": "<your-tool-call-id>",
"name": "<your-function-name>",
"result": "Success" // Or any success message
}
]
}
[According to user reports](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342188078437236916), this is the correct format Vapi expects.
2. **Content-Type Header**: Make sure the Content-Type
header of your webhook response is set to application/json
[as mentioned in troubleshooting guides](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1330221332452999321).
3. **Mismatched `toolCallId`**: The toolCallId
in your response must match the one sent by Vapi in the initial request [according to documentation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1325000684231196775).
## Debugging Steps
1. **Check Serialization**: Ensure your data is properly serialized into a JSON string before being sent [as recommended in support threads](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1330221332452999321).
2. **Test Manually**: Use a tool like Postman or cURL to manually test your webhook endpoint:
```bash
curl -X POST \
-H "authorization: Bearer " \
-H "Content-Type: application/json" \
-d '{
"eventType": "test.event",
"payload": {Vapi Support Bot
03/28/2025, 11:47 PMHiTMaN
03/29/2025, 12:07 AMKyle
03/30/2025, 10:23 AMHiTMaN
04/01/2025, 3:40 PMKyle
04/02/2025, 3:44 PM