is there a way to stop ongoing call?
Based on the available information, there are limited options for stopping an ongoing call:
Individual Call Deletion via API(1)
Each call can be ended individually by deleting it via the API using DELETE /v2/delete-call/{call_id}(1). However, there isn’t currently a single command to stop or cancel an entire batch in one go(1).
Prevention: Set Max Call Duration(2)
You can set the max_call_duration_ms in create_agent to prevent calls from running indefinitely(2). This can be configured through the API or in the dashboard(2).
Important Limitation(1)
Right now there isn’t a way to “end all live calls” at once(1). You can’t stop live calls remotely(1), which has been noted as a concern for preventing spam or unexpected bill increases(1).
For Batch Calls(1)
You can stop a batch call from its settings before calls are initiated, but once a batch is launched, you cannot cancel it(1).
https://api.retellai.com/v2/delete-call/call_2032e2929b7bba91187ad5ae555
Request Method
DELETE
Status Code
400 Bad Request
Remote Address
https://api.retellai.com/v2/delete-call/call_2032e2929b7bba91187ad5ae555
Request Method
DELETE
Status Code
{status: “error”, message: “Cannot delete an ongoing call. Please wait until the call is completed.”}
message
:
“Cannot delete an ongoing call. Please wait until the call is completed.”
status
:
“error”
Hello @rpetkov
Unfortunately, there is no direct way to stop an ongoing call.