How to actually download/link to voicemail message from message-store

  • 2
  • Question
  • Updated 1 year ago
I'm calling the message-store endpoint and see the attachment URI, but when I attempt to view or download the file, it's binary data, and I can't play it or anything.

Am I missing something about how I should actually obtain the file or link to it for playback?

I'm attempting to send voicemail messages into Slack so that they can be played by teammates that miss calls. 

I feel silly, since I don't see this being asked by anyone else and I'm not sure how/if anyone else is trying to do something similar.
Photo of Rory McDowell

Rory McDowell

  • 84 Points 75 badge 2x thumb

Posted 1 year ago

  • 2
Photo of Tyler Long

Tyler Long, Official Rep

  • 5,342 Points 5k badge 2x thumb
Yes voidemail is binary. You can save it as a *.wav file. Once you have the *.wav file, you can play it or send it to Slack. I have no experience with Slack so I cannot guide you further.
(Edited)
Photo of Anton Nikitin

Anton Nikitin, Official Rep

  • 2,522 Points 2k badge 2x thumb
You can get link to a message attachment URI from message (for example, https://developer.ringcentral.com/api-docs/latest/index.html#!#RefGetMessageInfo). If you try to download a voicemail attachment you will get a binary file with Content-Type header set to either "audio/mp3" or "audio/wav" (uncommon). See also this link: https://developer.ringcentral.com/api-docs/latest/index.html#!#RefMessageAttachment.html