question

Data Archival API avatar image
Data Archival API asked Suyash Joshi commented

In order to call this API endpoint, user needs to have [ReadCompanyCallLog] permission.

I am not able to read [Get Company Call Logs Records] API,


App Permission

ReadCallLog

User Permission

FullCompanyCallLog

Usage Plan Group

Heavy


params = {
    'view': 'Simple',
    'dateFrom': '2019-08-04',    
}
try:

    resp = platform.get('/restapi/v1.0/account/~/call-log', params)


rest api
1 |3000

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

Phong Vu avatar image
Phong Vu answered Phong Vu edited

It means that in order to read the call log of an entire account (call data of all extensions under an account) you need to login with the admin extension 101 or other extensions with the admin role.

If you login with a normal user extension (User role) use this endpoint '/restapi/v1.0/account/~/extension/~/call-log'

1 |3000

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

Anirban avatar image
Anirban answered Suyash Joshi commented

The main reason is this is an admin root access level to read the company level log and access the call log of all extension under the account.

Active Calls, Account level Call Log Records, and Extension level Call Log Records require the ReadCallLog API permission.

ref: https://developers.ringcentral.com/guide/voice/call-log/reading-call-log

more info: https://forums.developers.ringcentral.com/questions/162/call-logs-for-individual-accounts.html

2 comments
1 |3000

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

Hi Anirban.

But I am not clear on how to allow permissions. I thought, I already allowed ReadCallLog permission.

Please see this. It wants me to allow ReadCallLog permission for my app. so I did it.

https://prnt.sc/nbc-RN5AVNL_

https://prnt.sc/dKj8qOJL9bKL

Please let me know your opinion.

Thanks.

0 Likes 0 ·

Hi @NuCare Admin I think permission is not a problem in your case, it's access issue related to role, you need to try to call the API endpoint with admin extension.

0 Likes 0 ·

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