https://retellai.com/?utm_source=discord&utm_medium=seo logo
Is it possible to stop batch call by API
# ❓・ai-evy-support
b
@AI Evy Is it possible to stop batch call by API?
a
Thanks for tagging me @boroca.guy. I'll look through relevant sources and get back to you shortly.
### Answer The changelog mentions "Stop batch call controls" as an improvement that was released. [(1) ]() However, I don't have specific documentation on whether this stop functionality is available via API or only through the dashboard UI. The sources I have access to don't provide details on the API endpoint or method for stopping a batch call programmatically. Check out these potentially useful sources: - [Scale Outreach with Efficient Batch Calling | Retell AI]() - [Platform Changelogs | Retell AI]() - [Streamline Calls with Retell AI's Batch Dialer | Retell AI]() I'd recommend checking the [API documentation]() directly for batch call endpoints, or would you like me to try to provide a general answer based on typical API patterns?
​ To learn more, see the sources I considered: [[1] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
b
@AI Evy Retell send a webhook event when batch call start?
a
Thanks for the follow-up, @boroca.guy. I'll get back to you soon.
### Answer Based on the available documentation, Retell AI supports the following webhook event types: [(1) ]() -
call_started
– Triggered when a new call begins -
call_ended
– Triggered when a call completes, transfers, or encounters an error -
call_analyzed
– Triggered when call analysis is complete The
call_started
webhook is triggered for individual calls when they begin. However, I don't have documentation on whether there's a specific webhook event for when a batch call job itself starts (as opposed to individual calls within a batch starting) . Each call within a batch would trigger its own
call_started
webhook when that specific call connects. Check out these potentially useful sources: - [Webhook Overview]() - [API Documentation]() Would you like me to try to provide a general answer, or would you prefer to check the batch call API documentation directly for batch-level event notifications?
​ To learn more, see the sources I considered: [[1] Webhook Overview](https://docs.retellai.com/features/webhook-overview) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
b
@AI Evy How can I Create Batch Call by Python SDK?
a
Thanks for the follow-up, @boroca.guy. I'll get back to you soon.
### Answer The available documentation shows how to create a batch call using the **JavaScript SDK**:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const batchCallResponse = await client.batchCall.createBatchCall({
 from_number: '+14157774444',
 tasks: [{ to_number: '+12137774445' }],
}) ;
console.log(batchCallResponse.batch_call_id) ;
[(1) ]() However, I don't have documentation specifically showing the Python SDK syntax for creating batch calls. The API endpoint is
POST /create-batch-call
with the following required parameters: - from_number (required) : Your phone number in E.164 format, purchased from or imported to Retell - tasks (required) : A list of call tasks, each containing the recipient's phone number and optional dynamic variables Check out these potentially useful sources: - [Create Batch Call API Reference]() - [Create Batch calls Guide]() The Python SDK should follow a similar pattern to the JavaScript SDK. Would you like me to try to provide a general answer based on typical Python SDK patterns, or would you prefer to check the official Python SDK documentation directly?
​ To learn more, see the sources I considered: [[1] Create Batch Call](https://docs.retellai.com/api-references/create-batch-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.