https://retellai.com/?utm_source=discord&utm_medium=seo logo
- How can I get a batch of calls status
# 💬・general
j
@AI Evy - How can I get a batch of calls status?
a
Thanks for tagging me @Jeff Lee. I'll look through relevant sources and get back to you shortly.
### Answer You can monitor batch call status through the Retell AI dashboard in the Batch Call tab [(1) ]() . Batch calls are classified by status: Draft, Planned, Ongoing, and Sent . You can view metrics including Sent (total calls sent) , Picked Up (calls answered) , and Successful (calls completed based on predefined criteria) . Click the history icon to view call details for each call in the batch . To retrieve call data programmatically, you can use the List Calls API with the
filter_criteria.batch_call_id
parameter to filter calls by specific batch call ID(s) [(2) ]() .
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const callResponses = await client.call.list() ;
console.log(callResponses) ;
​ To learn more, see the sources I considered: [[1] Monitor batch calls](https://docs.retellai.com/deploy/monitor-batch-call) [[2] List Calls](https://docs.retellai.com/api-references/list-calls) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
j
Can I do so through an API call?
@AI Evy - Can I find a batch calls status through an API call?
a
Thanks for the follow-up, @Jeff Lee. I'll get back to you soon.
### Answer Yes, you can retrieve batch call status through the List Calls API by filtering with the
filter_criteria.batch_call_id
parameter [(1) ]() . This allows you to get all calls associated with a specific batch call ID .
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
  apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const callResponses = await client.call.list() ;
console.log(callResponses) ;
To filter for a specific batch call ID, you can pass the batch call ID in the
filter_criteria.batch_call_id
parameter . The parameter accepts an array of batch call IDs :
Copy code
json
{  
  "agent_id": ["agent_oBeDLoLOeuAbiuaMFXRtDOLriT12345"],  
  "call_status": ["ended"],  
  "call_type": ["phone_call"],  
  "direction": ["inbound"],  
  "user_sentiment": ["Positive"],  
  "call_successful": [true],  
  "start_timestamp": {  
    "upper_threshold": 1738475421000,  
    "lower_threshold": 1738475411000  
  }  
}
Each call response includes the
call_status
field which indicates whether the call is
registered
,
not_connected
,
ongoing
,
ended
, or
error
.
​ To learn more, see the sources I considered: [[1] List Calls](https://docs.retellai.com/api-references/list-calls) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.