https://retellai.com/?utm_source=discord&utm_medium=seo logo
If I have a batch call ID, can I make a GET reques...
# ❓・ai-evy-support
r
@AI Evy If I have a batch call ID, can I make a GET request to get all the call IDs from the batch call ID?
a
Thanks for tagging me @romanoclan. I'll look through relevant sources and get back to you shortly.
### Answer Yes, you can retrieve all call IDs associated with a batch call ID using the List Calls API [(1) ]() . Use the
filter_criteria.batch_call_id
parameter to filter for your specific batch call . Here's how to do it:
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, pass it in the
filter_criteria.batch_call_id
parameter, which accepts an array of batch call IDs . Each call response will include the
call_id
and
call_status
fields .
​ 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.
r
Give me what the headers and the body should be on an HTTP request for that