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
In order to call this API endpoint for another extension, one of the following permissions [ReadMessages] have to be granted with extended scope to the authorized user
Tags: rest api
May 31, 2021 at 11:49am   •   3 replies  •  0 likes
Adrian Carreon

When I make requests to the API to obtain the data of the messages by user, I receive this error as a response:

“In order to call this API endpoint for another extension, one of the following permissions [ReadMessages] have to be granted with extended scope to the authorized user.”


- endpoint: /restapi/v1.0/account/accountId/extension/extensionId/message-store

(https://developers.ringcentral.com/api-reference/Extensions/listExtensions)


What permits are necessary? And where can I assign them?

3 Answers
answered on Jun 1, 2021 at 10:40am  

The error message is misleading. I guessed that you try to read the message store of another user extension, not the user extension who is authenticated to call the API

- endpoint: /restapi/v1.0/account/accountId/extension/[extensionId]/message-store

Try this to read the message store of the extension being authenticated:

- endpoint: /restapi/v1.0/account/~/extension/~/message-store

If you get the list of extensions and get the extension id to read the message store of each extension under the account. You must login your app with an "Admin user" extension.

- endpoint: /restapi/v1.0/account/~/extension/[extensionId]//message-store


 1
answered on Jun 1, 2021 at 6:45am  

Thank you for the quick response.

In fact, my application has already assigned that permission but it still keeps throwing me that error.


What else can I do?

captura-de-pantalla-2021-05-27-a-las-90829.png


 0
answered on May 31, 2021 at 10:13pm  

Log in on https://developers.ringcentral.com/ . Go to Developer Console -> Apps -> Select your app -> Settings -> App Permission section -> Tick on your Read Message permission

You could also take a look at other stuff there to have better idea of what can be configured for your app :)


1622524160547.png


 0
on Jun 1, 2021 at 8:12am   •  0 likes

Thank you for the quick response.

In fact, my application has already assigned that permission but it still keeps throwing me that error.
What else can I do?
captura-de-pantalla-2021-05-27-a-las-90829.png



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