https://retellai.com/?utm_source=discord&utm_medium=seo logo
How I can download all summaries
# ❓・ai-evy-support
d
@AI Evy How I can download all summaries?
a
Thanks for tagging me @dropsofsteel. I'll look through relevant sources and get back to you shortly.
### Answer [(1) ]() [(2) ]()
Copy code
{
  "customer_name": "John Doe"
}
[(1) ]() , [(2) ]()
​ To learn more, see the sources I considered: [[1] Get Chat](https://docs.retellai.com/api-references/get-chat) [[2] List Chat](https://docs.retellai.com/api-references/list-chat) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
@AI Evy How I can download all summaries from call history as a report?
a
Thanks for the follow-up, @dropsofsteel. I'll get back to you soon.
### Answer To download call summaries programmatically, you can use the List Calls API [(1) ]() . The API returns call analysis data including call summaries in the response . Here's how to retrieve calls with their summaries using the JavaScript SDK :
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) ;
The API response includes a
call_analysis
object that contains the
call_summary
field . You can filter calls using various criteria and paginate through results to retrieve all your call data . For bulk data retrieval, you can use the
limit
parameter (up to 1000 calls per request) and the
pagination_key
to continue fetching additional pages . However, based on community discussions, there's currently no direct CSV export feature available from the dashboard [(2) ]() . You would need to programmatically fetch the data via the API and format it as needed for your reporting requirements.
​ To learn more, see the sources I considered: [[1] List Calls](https://docs.retellai.com/api-references/list-calls) [[2] Discord message from @gregb5117 on 2024-12-10](https://discord.com/channels/1186424376300679209/1186462578310910112/1315846997122744331) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
d
how to retrieve calls history along with the variables that i passed earlier?
@AI Evy how to retrieve calls history along with the variables that i passed earlier?
a
Thanks for the follow-up, @dropsofsteel. I'll get back to you soon.
### Answer When you retrieve call history using the List Calls API, the response includes both the dynamic variables you passed and the variables collected during the call [(1) ]() . Here's how to retrieve calls with variables using the JavaScript SDK:
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) ;
The API response includes two types of variables : 1. retell_llm_dynamic_variables - The variables you passed when creating or registering the call 2. collected_dynamic_variables - Variables collected during the call execution Example response structure showing both variable types :
Copy code
json
{
 "retell_llm_dynamic_variables": {
 "customer_name": "John Doe"
 },
 "collected_dynamic_variables": {
 "last_node_name": "Test node"
 }
}
You can also filter calls using various criteria in the request body, such as by agent_id, call_status, date ranges, and more . The API supports pagination with up to 1000 calls per request using the
limit
parameter and
pagination_key
for retrieving additional pages .
​ 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.