News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
MMS / Fax / Call recording Download Attachment error
Tags: rest api, fax, call recording
Feb 18, 2022 at 11:22am   •   1 replies  •  0 likes
Samyukta Bharadwaj

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.

1 Answer
answered on Feb 18, 2022 at 11:42am  
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>




 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us