Unable to download voicemail recording through returned download_url


Hi there, using the phone/users/$userid/voice_mails endpoint I can retrieve the voicemails of a particular user. After that request is done I attempt to create another request to download the mp3 of (any) voicemail for future use, and this is the part where I run into an error.

The download_url returned looks like this;


So essentially the download_url for the voicemails doesn’t seem to work :frowning:

I also tried to make the request using my JWT in the authorization header and directly in the url with ?access_token=JWT

See the attached screenshot as well

# Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Fri May 01 19:35:13 GMT 2020

There was an unexpected error (type=Not Acceptable, status=406).

Could not find acceptable representation

Which App Type (OAuth / Chatbot / JWT / Webhook)?
Using JWT token generated in PHP. Token works fine as I am able to make requests to other endpoints.

Which Endpoint/s?

How To Reproduce (If applicable)
Steps to reproduce the behavior:

  1. Request a user’s voicemails from phone/users/$userid/voice_mails
  2. Pull download_url from the voice_mail objects returned
  3. Either navigate or send a request to that URL and receive a 406 error.

Screenshots (If applicable)
Navigating to the download URL in the browser shows this;



Hey @luwestberg,

Can you private message me the user id so I can debug?


Apologies for the late reply, I was actually able to fix this by appending “access_token=JWT” to the request URL. I think I had an issue before because I was sending the JWT token in the headers as well.

1 Like

Happy to hear you figured out your issue! :slight_smile: