https://retellai.com/?utm_source=discord&utm_medium=seo logo
I get the calls from the api /list-calls can i sto...
# ❓・ai-evy-support
j
@AI Evy I get the calls from the api /list-calls can i store the data coming id database , if yes how can i store the recording as i only get the url for recording in the response
a
Thanks for tagging me @jk4821. I'll look through relevant sources and get back to you shortly.
### Answer Yes, you can store the call data from
/list-calls
in your database [(1) ]() . The API returns comprehensive call information including call IDs, timestamps, transcripts, metadata, and recording URLs [(1) ]() [(2) ]() . For storing the recording, the response provides
recording_url
which points to the audio file stored on Retell AI's S3 bucket . You have a few options: Option 1: Store the URL directly Store the
recording_url
string in your database . This is the simplest approach - you keep the reference to the recording without downloading it. Option 2: Download and store the recording file To store the actual recording file: 1. Fetch the call data from the API to get the
recording_url
2. Download the audio file from the URL (it's a
.wav
file) 3. Store the downloaded file in your own storage system (local filesystem, S3, etc.) 4. Save the reference to your stored file in your database The API also provides
recording_multi_channel_url
for recordings with separate audio channels for each party . Additional recording options: -
scrubbed_recording_url
- recording without PII -
scrubbed_recording_multi_channel_url
- multi-channel recording without PII All recording URLs become available after the call ends .
​ To learn more, see the sources I considered: [[1] List Calls](https://docs.retellai.com/api-references/list-calls) [[2] Get Call](https://docs.retellai.com/api-references/get-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
What you need help with
hello
j
Yes
Hi
@AI Evy Hi Retell team 👋 We are integrating Twilio Custom Telephony for inbound calls. Our Twilio setup and proxy are working correctly, but inbound calls are failing with 404 on /v1/twilio/inbound.
a
Thanks for the follow-up, @jk4821. I'll get back to you soon.
### Answer The 404 error on
/v1/twilio/inbound
suggests you may be using an incorrect integration method. For Twilio custom telephony with Retell AI, you should use Elastic SIP Trunking rather than hitting a webhook endpoint directly. [(1) ]() Here's the correct approach: 1. Create an Elastic SIP Trunk in Twilio - Set up a SIP trunk with proper termination settings (for outbound) [(2) ]() - Configure origination (for inbound) with Retell's SIP server address:
sip:sip.retellai.com
2. Import Your Number to Retell After configuring the trunk, import your phone number to Retell using the Import Phone Number API with these required parameters: [(3) ]() - `phone_number`: Your number in E.164 format (e.g.,
"+14157774444"
) - `termination_uri`: Your elastic SIP trunk URI (for Twilio, it ends with
.pstn.twilio.com
) You can also configure optional authentication credentials (
sip_trunk_auth_username
,
sip_trunk_auth_password
) and bind an
inbound_agent_id
to handle incoming calls. 3. Common Issues to Check [(2) ]() - Check your Termination SIP URI for any spaces and remove them - Use a localized termination URI near your region - Verify your username and credentials are correct The key point is that you don't hit an endpoint directly for inbound calls—the SIP trunk handles the routing to Retell's SIP server. [(1) ]()
​ To learn more, see the sources I considered: [[1] Issue integrating Twilio inbound calls with retell ai agent (404 on webhook)](https://discord.com/channels/1186424376300679209/1407367554938175629) [[2] I’m trying to use a toll-free number (connected from Twilio through a SIP trunk)](https://retell.discourse.group/t/i-m-trying-to-use-a-toll-free-number-connected-from-twilio-through-a-sip-trunk/127) [[3] Import Phone Number](https://docs.retellai.com/api-references/import-phone-number) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.