https://retellai.com/?utm_source=discord&utm_medium=seo logo
is there a way to export all recordings from batch...
# ❓・ai-evy-support
j
@AI Evy is there a way to export all recordings from batch calling?
a
Thanks for tagging me @jpbenavides. I'll look through relevant sources and get back to you shortly.
### Answer The Call History dashboard CSV export does not include call recording links directly. [(1) ]() However, you can retrieve recording URLs programmatically using the List Calls API. [(2) ]() [(1) ]() You can filter calls by
batch_call_id
to get only calls from a specific batch:
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) ;
[(2) ]() The response includes
recording_url
for each call:
Copy code
json
"recording_url": "<https://retellai.s3.us-west-2.amazonaws.com/Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6/recording.wav%22>
You can use the
filter_criteria.batch_call_id
parameter to filter results to a specific batch call.
​ To learn more, see the sources I considered: [[1] How can I export past call recording links?](https://discord.com/channels/1186424376300679209/1379466777624580337) [[2] 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.
j
@User for how long are the recordings stored?
a
Thanks for the follow-up, @jpbenavides. I'll get back to you soon.
j
@AI Evy for how long are the recordings stored?
a
### Answer Retell AI stores session history and recordings indefinitely. [(1) ]() However, all session history and recordings will be permanently deleted if you choose to delete your account. A couple of additional notes: - If you opt out of sensitive data storage (set to "Basic Attributes Only") , recordings won't be stored at all. [(2) ]() - If you receive recording URLs via webhook with storage opted out, those links expire after 10 minutes. If recordings are critical for your use case, you may want to download them automatically after each call using a webhook to ensure you have your own copies stored. [(8) ]()
​ To learn more, see the sources I considered: [[1] Monitor sessions via dashboard](https://docs.retellai.com/features/session-history) [[2] Data Storage Settings - Retell AI](https://docs.retellai.com/accounts/privacy-disable) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.