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

  • 2
  • Question
  • Updated 2 years 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

  • 86 Points 75 badge 2x thumb

Posted 2 years ago

  • 2
Photo of Tyler Long

Tyler Long, Official Rep

  • 9,828 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.
Photo of Anton Nikitin

Anton Nikitin, Official Rep

  • 3,024 Points 3k badge 2x thumb
You can get link to a message attachment URI from message (for example,!#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:!#RefMessageAttachment.html