Jeff Lee
11/04/2025, 2:21 AMAI Evy
11/04/2025, 2:21 AMAI Evy
11/04/2025, 2:21 AMfilter_criteria.batch_call_id parameter to filter calls by specific batch call ID(s) [(2) ]() .
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const callResponses = await client.call.list() ;
console.log(callResponses) ;AI Evy
11/04/2025, 2:22 AMAI Evy
11/04/2025, 2:22 AMJeff Lee
11/04/2025, 2:22 AMJeff Lee
11/04/2025, 2:23 AMAI Evy
11/04/2025, 2:23 AMAI Evy
11/04/2025, 2:23 AMfilter_criteria.batch_call_id parameter [(1) ]() . This allows you to get all calls associated with a specific batch call ID .
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 :
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 .AI Evy
11/04/2025, 2:23 AMAI Evy
11/04/2025, 2:23 AM