Is there an API endpoint to end a running call by ...
# support
b
I see API calls for Create Call and Delete Call Data, but not one to terminate an existing call, such as DELETE https://api.vapi.ai/api/call/CALLID or something like GET/POST https://api.vapi.ai/api/endcall/CALLID . I also don't see any way to do this from the call logs page.
v
@Brian @ Testbot.app LemurLabs.ai To terminate an existing call, you would typically use an API endpoint that is specifically designed for that action. However, if you're not seeing an endpoint like
DELETE https://api.vapi.ai/api/call/CALLID
or a similar method in the VAPI documentation, it's possible that the feature might not be directly exposed via the API or the documentation might not be updated. In such cases, I would recommend checking the API documentation thoroughly for any updates or additional endpoints that might have been added after the
updatedAt
timestamp you've provided. If the documentation still does not provide a clear way to terminate a call, it's best to reach out to the support team for more detailed information on how to achieve this. If there's anything else you'd like to know or if you need assistance with another feature of VAPI, please let me know!
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
s
as of now there is no endpoint to terminate call but you can try client sdks
b
Can the client SDKs reconnect to a call after the initial connection has been closed? Eg: if a call is started in script1.py and script1.py crashes/exits, can script2.py connect with the original call-id and get/send events?
s
It won't resume from same event/duration but you can the previous call context.
b
Okay, thanks
5 Views