Which file URL should be used when associating a file with a call recording?

When I create a call via the API, I have the option of including a hs_call_recording_url. When you create a file via the API there are two URLs available: url and defaultHostingUrl. Which one of these should be used with hs_call_recording_url?
I’ve tried both and none of them appear to work, because when I try to play my recording I get the following error:

My audio files have the .wav extension.

Hey @jpinto_ic

I think I answered a similar question asked by @arth here. Let me know if that helps

It turns out the reason why it wasn’t working is because I was uploading the file as PRIVATE, and it needs to either be PUBLIC or PUBLIC_NOT_INDEXABLE to work. After that, using the url of the created file on the hs_call_recording_url worked!

BOOM! thanks for posting the solution!