Skip to main content
Question

Facing issue connecting to Twilio and receiving recording file

  • December 23, 2024
  • 6 replies
  • 16 views

AI werkt

Hi,

I'm using a zap to connect with Twilio. This is working fine. The connection is working and the trigger works also.
When I want to retrieve a recorded message I'm getting a “401 Unauthorized” message. 

I searched everywhere and the problem is pure authentication.

 

 

In the apps connection settings I filled in everything (see below the screen)

 

The connection is succesfull:

 

The problem is not Deepgram, but pure the accessibility of the file. I need additional credentials to store the audio file, but I cannot add this anywhere in Zapier.

All the help is very welcome!!!

Thx Alex

Did this topic help you find an answer to your question?

6 replies

Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 30887 replies
  • December 23, 2024

Hi ​@AI werkt 

For us to have more info, post screenshots showing which Zap step you are using and how it is configured in EDIT mode with the field mappings visible.


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7415 replies
  • January 10, 2025

Hey there, ​@AI werkt 👋

Were you since able to get this resolved?

If not, is it a file link that you’re passing from Twilio to Deepgram or a file object? If it’s a file link and it isn’t publicly accessible then that could explain why Deepgram isn’t able to access it and is showing that “401 Unauthorized” error. See our Send files in Zaps guide for more details on the requirements for sending files between different apps. Do you think that could be the case or were you using a file object?

Looking forward to hearing from you!


Yeah, pretty sure ​@SamB is right. I am having the same issue trying to transfer twilio recordings to google drive. The file link in the twilio event is not public therefore when Zapier goes to fetch it it is not authenticated on twilio, even if it is authenticated to receive the trigger. I tried using the File from text function but the error is the same.

 

 



​​​​​I am still stuck at this step, trying to get Zapier to authenticate to the twilio API.

 


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7415 replies
  • February 14, 2025

Hi ​@fx - amical 👋

Sorry to hear you’re running into a similar issue with your Twilio recordings. Are there any settings on Twilio’s end that would allow you to set the permissions for the files to be public by default? Not an ideal solution I know but should help to ensure that the subsequent actions in your Zap can access the files.

Also, wanted to flag that with that “File From Text” action it would be expecting to be read the text from a text based file (e.g. CSV, JSON, XML) not an mp3 file as pictured in your screenshot.

Hope that helps. Keep us updated on how you get on! 🙂


I’m not sure there is way to make them public, but if there was that would not be an acceptable solution for us security-wise. I ended up coding something custom to do it, I did not find a way to make it from current Zapier’s functions. I think Zapier should do it, with the rise of over-the-phone AI I think many businesses will look to move recordings around.


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7415 replies
  • February 17, 2025

Thanks for the update, ​@fx - amical! I’m so glad to hear you were able to implement an alternative solution, even it if didn’t involve using Zapier.

Totally understand that making them public wouldn’t be an option for security reasons and appreciate you highlighting this as a potential improvement. I’d recommend reaching out to our Support team to submit a feature request for the trigger to supply a file object that can be passed to subsequent actions. You can do that here: https://zapier.com/app/get-help 

@AI werkt - if you’re still looking for a solution here I just spotted that Twilio’s API has a Fetch a Recording's media file endpoint, so I’d suggest using a Custom Action or API Request (Twilio) action to get the file object. If you’re interested in exploring that further, here are some guides to help: 


Let us know if there’s anything else we can help with!