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
Why can I not retrieve most call recordings from RingCentral API?
Tags: rest api
Jun 11, 2020 at 12:48pm   •   1 replies  •  0 likes
matt-spinks

I seem to be having a problem retrieving recorded calls from the RingCentral API for a single customer. Here is an example:


Call log rec:

{
  "id": "H0U8F6L_Ow1jzUA",
  "uri": "https://platform.ringcentral.com/restapi/v1.0/account/2899077020/call-log/H0U8F6L_Ow1jzUA?view=Detailed",
  "sessionId": "378036522032",
  "type": "Voice",
  ...
  "recording": {
    "id": "1160323997032",
    "uri": "https://platform.ringcentral.com/restapi/v1.0/account/2899077020/recording/1160323997032",
    "type": "Automatic",
    "contentUri": "https://media.ringcentral.com/restapi/v1.0/account/2899077020/recording/1160323997032/content"
  },
  ...
}


Url:

https://media.ringcentral.com/restapi/v1.0/account/2899077020/recording/1160323997032/content

Response:

{
  "errorCode" : "CMN-102",
  "message" : "Resource for parameter [callRecordingId] is not found",
  "errors" : [ {
    "errorCode" : "CMN-102",
    "message" : "Resource for parameter [callRecordingId] is not found",
    "parameterName" : "callRecordingId"
  } ],
  "parameterName" : "callRecordingId"
}

Request:

Authorization = Bearer [Auth token here...]
Accept = application/json
Host = media.ringcentral.com
Connection = Keep-Alive

Response:

Connection = keep-alive
RCRequestId = 9f89bf92-ac19-11ea-b8c0-005056af128c
RoutingKey = SJC01P15PAS08
Content-Language = en-US
X-Rate-Limit-Group = heavy
X-Rate-Limit-Limit = 20
X-Rate-Limit-Remaining = 19
X-Rate-Limit-Window = 60
Content-Length = 305
Content-Type = application/json;charset=utf-8
Date = Thu, 11 Jun 2020 19:27:44 GMT
Server = nginx



I have talked to the customer, and they have verified that for this particular call, the recording is visible and playable from their RingCentral portal. However, when our system goes to retrieve the recording via the api, we get the results above. Could this be a permissions issue? This is one example, but we see this happening numerous times across this account, and we are only able to retrieve approx 10% of all their recorded calls. With the other 90%, we get the results above.


1 Answer
answered on Jun 11, 2020 at 9:30pm  

Saying "cannot retrieve most call recordings ..." do you mean the exact same code works for some recordings and fails on certain recordings?


 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