The GET/voicemail/file method returns a particular voicemail file as an Asci string encoded in Base64 format.
The returned response Include the following fields of information:
- name - the name the voicemail's audio file.
- data - the actual audio of the voicemail delivered as a text string encoded in base64 format.
- mimetype - the format of the audio file. This is always defined as "audio\/x-wav"
You can convert the data into actual audio with any online base64 to wav convertor, such as this one:
Choose "decode" and enter the output file as ".wav"
All parameters go in the header.
|dir||string||The directory for which the messages will be listed, either INBOX or SENT|
|mailbox||string||Indicate the number for the mailbox from which you want to obtain the voicemail file from.|
|voicemail||string||The file name of the voicemail for which you want to obtain the audio data.|
You get the file name from the get/voicemail method as explained here.
To get the audio for a file "1500371176_15003711625275027_10142__9" from mailbox 1113840 use this syntax:
HTTPS method: GET
The data field may be dozens of pages long. Shown here is a truncated version.