I am having trouble figuring out how use the API to get the call details like success/failure, duration, etc for outbound calls that are made using the call list and campaign section. We load the call lists, run the campaign, and can view the call details in the “Interaction Details” dashboards in Ring CX Analytics. But we need to get these call details brought back into our system via API. I am using the platform SDK, Postman and CURL and the developer test console with the same results all the time. Here’s as simple of an example as I can give.
Query:
curl --request GET \
--url 'https://platform.ringcentral.com/restapi/v1.0/account/XXXXXXXX/call-log?view=Detailed&withRecording=true&page=1&perPage=100' \
--header 'accept: application/json' \
--header 'authorization: Bearer XXXXX...XXXXX’
Response:
{ "errorCode": "InvalidParameter", "message": "Resource for parameter [accountId] is not found", "errors": [ { "errorCode": "CMN-102", "message": "Resource for parameter [accountId] is not found", "parameterName": "accountId" } ], "parameterName": "accountId" }
If I just use ~ as my accountId, I only get records for my personal phone number, even though I am a Super Admin. I need to get all the results for my account - especially the campaigns. The Account ID is XXXXXXXX which I get from our account parameters or when I add the account number to the above mentioned analytics report in RingCX Analytics.
Am I looking in the wrong place for the call details for the outbound campaigns that we run? How can I get those via API?
Thanks, David