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? I do not want to do SDK. Give me a sample Postman script or the headers, body, and query parameters if needed for this. Make it a normal HTTP GET request.
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 with the
filter_criteria.batch_call_id
parameter [(1) ]() . HTTP GET Request Details: Endpoint: `GET Headers: -
Authorization: Bearer YOUR_RETELL_API_KEY
-
Content-Type: application/json
Query Parameters: You'll need to pass the filter criteria as query parameters. Here's the structure:
Copy code
filter_criteria.batch_call_id[]=your_batch_call_id_here
Sample Postman Request: 1. Method: GET 2. URL: ` 3. Headers: - Key:
Authorization
| Value:
Bearer YOUR_RETELL_API_KEY
- Key:
Content-Type
| Value:
application/json
Optional Query Parameters: - `limit`: Limit the number of calls returned (default 50, max 1000) - `sort_order`:
ascending
or
descending
(default: descending) - `pagination_key`: For fetching additional pages if you have more than 1000 calls Example Full URL:
Copy code
<https://api.retellai.com/v2/list-calls?filter_criteria.batch_call_id%5B%5D=your_batch_call_id&limit=100&sort_order=descending>
The response will include all calls associated with that batch call ID, with each call containing its
call_id
and other call details .
​ 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
@AI Evy What's the end point with the end point having the batch_call_id?
a
Thanks for the follow-up, @romanoclan. I'll get back to you soon.
### Answer The endpoint is:
Copy code
GET <https://api.retellai.com/v2/list-calls>
[(1) ]() The
batch_call_id
is passed as a query parameter in the URL, not as part of the endpoint path . The filter criteria uses the parameter
filter_criteria.batch_call_id
. Complete example URL:
Copy code
<https://api.retellai.com/v2/list-calls?filter_criteria.batch_call_id%5B%5D=your_batch_call_id_here>
Headers required: -
Authorization: Bearer YOUR_RETELL_API_KEY
-
Content-Type: application/json
The
filter_criteria.batch_call_id
parameter accepts an array of batch call IDs, which is why you see the
[]
notation in the query parameter .
​ 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.