serverMessages not triggering end-of-call-report
# support
a
I'm trying to get the end-of-call-report webhook to fire but it's not coming through to my server. I've set up the serverUrl in the Advanced tab and enabled the message type in serverMessages. Other events like transcript and conversation-update work fine. Just the end-of-call-report never arrives. Has anyone else run into this? Is there a specific order these need to be configured or does the call need to end in a certain way for the report to send?
v
Try adding this to your assistant configuration to ensure the
end-of-call-report
webhook is enabled:
Copy code
json
{
  "server": { "url": "https://your-server.com" },
  "serverMessages": ["end-of-call-report", "status-update"]
}
Double-check that your server is publicly accessible and listening for POST requests at the correct endpoint, as the webhook should be sent automatically when a call ends ([see documentation](https://docs.vapi.ai/server-url/events)). If this is already set, try ending a call by hanging up normally to trigger the event. Source: - [Server events documentation](https://docs.vapi.ai/server-url/events)
a
{ "name": "Support Line" "server": { "url": https://akogeno.thurn.com "timeoutSeconds": 30 }, "serverMessages": [ "end-of-call-report "status-update "transcript "conversation-update" ], "model": { "provider": "openai "model": "gpt-4o" }, "voice": { "provider": "11labs "voiceId": "21m00Tcm4TlvDq8ikWAM" } }
Copy code
{
  "name": "Support Line",
  "server": {
    "url": "https://example.com",
    "timeoutSeconds": 30
  },
  "serverMessages": [
    "end-of-call-report",
    "status-update",
    "transcript",
    "conversation-update"
  ],
  "model": {
    "provider": "openai",
    "model": "gpt-4o"
  },
  "voice": {
    "provider": "11labs",
    "voiceId": "21m00Tcm4TlvDq8ikWAM"
  }
}
transcript and conversation-update both come through fine
c
Hi agargarf, To programmatically end a call using the VAPI platform, you can send an
end-call
message type within
ClientInboundMessage
. Ensure you include a message with the
type
property set to
"end-call"
when sending inbound messages to the client. You can find more details about this feature in the [January 14, 2025 changelog](https://docs.vapi.ai/changelog/2025/1/14). If you have additional questions on handling server messages or specific end reasons, feel free to let me know.