Aidan
05/01/2025, 3:13 AMVapi Support Bot
05/01/2025, 3:15 AMbash
# First send your custom end message
curl -X POST "https://aws-us-west-2-production1-phone-call-websocket.vapi.ai/YOUR_CALL_ID/control" \
-H 'content-type: application/json' \
--data-raw '{
"type": "add-message",
"message": {
"role": "assistant",
"content": "Thank you for your time. I will end this call now. Goodbye!"
},
"triggerResponseEnabled": true
}'
# Then end the call after message is spoken
curl -X POST "https://aws-us-west-2-production1-phone-call-websocket.vapi.ai/YOUR_CALL_ID/control" \
-H 'content-type: application/json' \
--data-raw '{"type": "end-call"}'
Source:
- [Discord message about ending calls](https://discord.com/channels/1211482211119796234/1296705973737488505)Chiranjeet Mishra
05/01/2025, 8:40 AM