VAPI doesnt receive webhook confirmation
# support
a
Even though I formatted my webhook response after calendar booking the right way, vapi fail to receive this data. He is prompted so that when he receive "result": "Le rendez-vous est confirmé" it means the booking was successful... do I need to add something else in the webhook? What else can I do? The booking is made inside my booking platform, its just the assistant that fail telling the customer that its booked. https://cdn.discordapp.com/attachments/1359954901643559192/1359954902155006002/image.png?ex=67f95c33&is=67f80ab3&hm=8c08b9043c7324d79c986d1fc71dae6ed032df25df172ed0f8bdeaea4e43629f&
v
Hi there! 👋 I see you're having trouble with VAPI not receiving your webhook confirmation after a calendar booking. I'm unable to determine the exact cause of your specific issue without access to your full configuration and logs. However, I can definitely help with the webhook format requirements and suggest some troubleshooting steps. Looking at your screenshot, I notice a few potential issues: 1. **JSON Format**: While your response includes the required fields, there might be an issue with the
toolCallId
format. According to the [VAPI documentation](https://docs.vapi.ai/tools/custom-tools), the
toolCallId
in your response should match exactly what VAPI sent in the initial request. I notice your
toolCallId
includes a "call." prefix (
call.vhAIl2pkvzWC80U8k0De1IQR
), which might be causing issues. Try formatting your response like this:
Copy code
json
{
  "results": [
    {
      "toolCallId": "vhAIl2pkvzWC80U8k0De1IQR",
      "result": "Le rendez-vous est confirmé"
    }
  ]
}
2. **Content-Type Header**: Make sure your webhook is sending the response with the
Content-Type: application/json
header. This is required for VAPI to properly process the response. 3. **Troubleshooting Steps**: - Double-check that the
toolCallId
exactly matches what VAPI sent in the initial request - Verify your server logs to see if there are any errors when processing the webhook - Try testing the webhook manually using a tool like Postman or cURL - Check if there are any network issues or firewall settings blocking the communication Would you like me to provide more specific troubleshooting steps or explain any part of the webhook confirmation process in more detail? Sources: - [VAPI webhook confirmation requirements](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1339900285727805513) - [VAPI webhook response format requirements](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334658296291921920)
- [How VAPI uses toolCallId for webhook confirmation](https://docs.vapi.ai/tools/custom-tools) - [VAPI webhook troubleshooting steps](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336345690393149452)
Hi there! 👋 I can see you're having trouble with VAPI not receiving your webhook confirmations, despite getting a 200 HTTP status. While I don't have specific information about your particular booking platform integration, I can definitely help with troubleshooting the webhook confirmation process. Looking at your screenshot, your webhook response format appears to be structured correctly with the
results
array containing an object with
toolCallId
and
result
fields. However, there are several potential issues that could be preventing VAPI from processing it properly: ### 1. Check the
toolCallId
format Make sure the
toolCallId
in your response exactly matches the one sent by VAPI in the initial request. According to the [VAPI documentation](https://docs.vapi.ai/tools-calling), the
toolCallId
is crucial for VAPI to match the response with the corresponding tool call. ### 2. Verify the JSON structure Ensure there are no nested JSON objects or unescaped line breaks in your
result
field. According to troubleshooting information, the
result
field should directly contain the response data as a string without nested JSON. ### 3. Content-Type header Make sure the content-type of your response is set to
application/json
. ### 4. Domain whitelisting You might need to whitelist
vapi.ai
and
*.vapi.ai
domains due to dynamic IPs. ### 5. Check server logs and VAPI dashboard Review your server logs for any errors and check the VAPI dashboard for webhook delivery logs to see if there are any failed attempts and what the reasons might be. ### 6. Test the webhook manually Try sending a manual POST request to your webhook URL using a tool like Postman or cURL to verify that it's set up correctly and capable of receiving data. ### 7. Case sensitivity VAPI might be case-sensitive, so ensure that the case of the keys in your JSON response matches the expected format. Some sources suggest webhook bodies have snake_case but real requests have camelCase.
Is there anything specific about these troubleshooting steps you'd like me to elaborate on? Sources: - [VAPI webhook confirmation process and requirements](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334280135683084328) - [VAPI webhook response format requirements](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1325000684231196775) - [Troubleshooting VAPI webhook confirmation issues](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334658296291921920) - [How VAPI uses the 'result' field in the webhook response](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342188078437236916) - [VAPI webhook documentation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333797946440941639)
u
Fixed it, I was not sending the response in results array, I was just sending it like {toolcallid:, result:}
k
Marking this ticket as Solved ✅