https://retellai.com/?utm_source=discord&utm_medium=seo logo
how do i get call data for a day with api
# ❓・ai-evy-support
w
@AI Evy how do i get call data for a day with api? i want to export those data in a certain format . and what is the data retention
a
Thanks for tagging me @wrxcs_kj. I'll look through relevant sources and get back to you shortly.
### Answer To retrieve call data for a specific day, use the List Calls API endpoint [(1) ]() . You can filter calls by date range using the
filter_criteria
parameter with
start_timestamp
and
end_timestamp
fields . The calls are sorted by
start_timestamp
in either ascending or descending order . The API returns up to 1000 calls per request (default 50) . If you need more than 1000 calls, use the
pagination_key
parameter to fetch additional pages . The response includes comprehensive call data such as
call_id
,
agent_id
,
call_status
,
transcript
,
recording_url
,
call_analysis
,
call_cost
, and more . You can process this JSON response to export the data in your desired format. Regarding data retention: By default, Retell stores call logs, transcripts, recordings, and metadata in encrypted infrastructure unless you opt-out [(2) ]() . If you keep opt-out OFF, Retell stores data securely in its encrypted environment . If you turn it ON, minimal ephemeral storage holds data only long enough to deliver it via webhook . You can also process and manage transcripts and recordings on your backend via webhooks, then manually delete or archive as needed .
​ To learn more, see the sources I considered: [[1] List Calls](https://docs.retellai.com/api-references/list-calls) [[2] Model data retention](https://discord.com/channels/1186424376300679209/1394836647773864127) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.