import Retell from 'retell-sdk';
const client = new Retell({
apiKey: process.env['RETELL_API_KEY'], // This is the default and can be omitted
});
await client.call.stop('call_a4441234567890777c4a4a123e6');{
"status": "error",
"message": "Invalid request format, please check API reference."
}Stop an ongoing call.
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: process.env['RETELL_API_KEY'], // This is the default and can be omitted
});
await client.call.stop('call_a4441234567890777c4a4a123e6');{
"status": "error",
"message": "Invalid request format, please check API reference."
}Authentication header containing API key (find it in dashboard). The format is "Bearer YOUR_API_KEY"
The call id of the ongoing call to be stopped.
"call_a4441234567890777c4a4a123e6"
Call stopped successfully
Was this page helpful?