Create a public POST endpoint, configure the "server" object in your assistant with the URL, a secret, and set "serverMessages": ["end-of-call-report"] when the call ends, then vapi will send a report to your endpoint, and you can use the callId to fetch full details via GET /call/:callId..
https://docs.vapi.ai/server-url/server-authentication