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
CallLog API problems
Tags: rest api
Mar 21, 2024 at 2:06am   •   2 replies  •  0 likes
Krzysztof Szczepanik

Hi,


I`m willing to create REST API that will call RingCentral to obtain CallLogs (not live calls).
I use JWT token with this link to obtain access token:
https://platform.ringcentral.com/restapi/oauth/token
and it's all successful.1711011937054.pngI don't use RingCentral SDK because I use 3rd party tool to communicate with RingCentral.

So I have access token and my question is how/which API should be called to obtain my company calls?
My company number is +44204506xxxx
I have created Rest Api App on developer portal, I tried to use this api:

1711011422041.png
with production instance by clicking 'Try it out' but it gives me information that I don't have "ReadCompanyCallLog" permissions.

My questions are:
1. Do I use good API if I want to obtain list of call logs from my company number?
2. How can I add permissions to get this "ReadCompanyCallLog" - I'm developer admin on my account and I cannot perform this action
3. How I should place access token that I get from first call into next API calls (it should be in a header but with what key/property?)


Thanks in advance for any help in this topic.

2 Answers
answered on Mar 22, 2024 at 12:20am  

Hi,

thank you for this information but I don't see nothing like 'super admin' role.
Even on my personal dev account I have only those 3 (same as on my company one).1711091743860.png
And where do you create new roles for your app?
I can see only application scopes in Settings.


 0
on Mar 22, 2024 at 7:01am   •  0 likes

That is a wrong place to look and set. Login the account admin portal with a super admin user and set the user role of that user extension.

screen-shot-2024-03-22-at-70122-am.png

answered on Mar 21, 2024 at 7:20am  

It is because the JWT was generated by/for a user extension who has the standard (other a custom) user role under your RingCentral account. You have 3 options,

1. Use another user who is a super admin user to generate a new JWT token.

2. Change the current user role to "super admin" role.

3. Create a custom role and check these checkboxes accordingly (and any other user permission you need) and assign the new role to the current user.

screen-shot-2024-03-21-at-71257-am.png


 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