Skip to main content

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.

This error usually occurs when you click on the uri directly or make an API call without the Authorization header : bearer <access token>


screen-shot-2022-01-21-at-115502-am.png


You might run into this error :


screen-shot-2022-01-21-at-115630-am.png



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.


screen-shot-2022-01-21-at-114715-am.png


And then proceeding to request to get the attachment.


screen-shot-2022-02-18-at-112632-am.png


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