Skip to main content

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.


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


Reply