https://retellai.com/?utm_source=discord&utm_medium=seo logo
how to export daily call analytics of a particular...
# ❓・ai-evy-support
w
@AI Evy how to export daily call analytics of a particular voice agent
a
Thanks for tagging me @wrxcs_kj. I'll look through relevant sources and get back to you shortly.
### Answer To export daily call analytics for a specific voice agent, you can use Retell's List Calls API filtered by
agent_id
. [(1) ]() From the returned call data, you can calculate metrics like: - Total calls - Average call duration - Successful and unsuccessful calls You can also export call history data directly from the dashboard using selected filters and column settings, which mirrors the call history table. [(2) ]() For programmatic access, the analytics dashboard allows you to: - Monitor key metrics like call success rate, transfer rate, call counts, and latency - Create custom charts tailored to your needs - Dive deep into programmatic calls for troubleshooting Check out these potentially useful sources: - [List Calls API]() - [Call Analytics Glossary]() - [Platform Changelogs]() Would you like me to provide a general answer on how to structure the API call to retrieve this data?
​ To learn more, see the sources I considered: [[1] Analytics dashboard](https://discord.com/channels/1186424376300679209/1386311008364265472) [[2] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
w
i need api, which will help me extract call details and variables that i extracted from the call agent
@AI Evy i need api, which will help me extract call details and variables that i extracted from the call agent
a
Thanks for the follow-up, @wrxcs_kj. I'll get back to you soon.
### Answer To extract call details and variables collected during calls, use the List Calls API (
POST /v2/list-calls
) . [(1) ]() Example:
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) ;
You can filter by
agent_id
to get calls for a specific agent:
Copy code
json
{  
  "agent_id": ["agent_oBeDLoLOeuAbiuaMFXRtDOLriT12345"]
}
Key fields returned include: -
call_id
,
agent_id
,
call_status
,
duration_ms
-
transcript
and
transcript_object
(with timestamps) -
collected_dynamic_variables
– contains variables extracted during the call (e.g.,
{"last_node_name": "Test node"}
) -
retell_llm_dynamic_variables
– dynamic variables injected into the call -
call_analysis
– includes
call_summary
,
user_sentiment
,
call_successful
, and
custom_analysis_data
-
recording_url
and
public_log_url
The
collected_dynamic_variables
field specifically holds the variables your agent extracted during the conversation.
​ 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.