Scenario : Usually, while using postman, there is a chance that you are clicking on the request to download the attachment, postman opens a new window, and you immediately click the send button. This will throw an error because there is no request body and access token attached to that request.
MMS / Fax / Call recording Download Attachment error
Page 1 / 1
This error usually occurs when you click on the uri directly or make an API call without the Authorization header : bearer <access token>
You might run into this error :
The resolution would be to construct the request again for the attachment, as shown in the screenshot, by duplicating one of the GET requests. By doing this, you can make sure that the headers are intact.
And then proceeding to request to get the attachment.
Curl Code for downloading MMS
curl --location --request GET 'https://media.ringcentral.com/restapi/v1.0/account/~/extension/~/message-store/XXXXXXX/content/XXXXXXXX
'
--header 'Content-Type: application/json'
--header 'Accept: application/json'
--header 'Authorization: Bearer <Access Token>
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.