question

Samyukta Bharadwaj avatar image
Samyukta Bharadwaj asked Samyukta Bharadwaj answered

MMS / Fax / Call recording Download Attachment error

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.

rest apifaxcall recording
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Samyukta Bharadwaj avatar image
Samyukta Bharadwaj answered
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>




1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys