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
What permission should I have to get Message List?
Tags: rest api, message, permissions
Jun 12, 2022 at 10:08pm   •   1 replies  •  0 likes
Alex Wang

tried to get message list from an extension by call: /restapi/v1.0/account/:accountId/extension/:extensionId/message-store

but it looks like returned 200 with 0 items as below response:

{
    "uri": "https://platform.ringcentral.com/restapi/v1.0/account/3245691008/extension/62538302008/message-store?availability=Alive&dateFrom=2022-06-12T04:58:00.000Z&page=1&perPage=100",
    "records": [],
    "paging": {
        "page": 1,
        "totalPages": 1,
        "perPage": 100,
        "totalElements": 0
    },
    "navigation": {
        "firstPage": {
            "uri": "https://platform.ringcentral.com/restapi/v1.0/account/3245691008/extension/62538302008/message-store?availability=Alive&dateFrom=2022-06-12T04:58:00.000Z&page=1&perPage=100"
        },
        "lastPage": {
            "uri": "https://platform.ringcentral.com/restapi/v1.0/account/3245691008/extension/62538302008/message-store?availability=Alive&dateFrom=2022-06-12T04:58:00.000Z&page=1&perPage=100"
        }
    }
}

I'm able to see and download all messages from Admin panel, but am not be able to do that via API. Is there any permission should I have?

Thanks.


1 Answer
answered on Jun 13, 2022 at 7:29pm  

Hi @Alex Wang From the response, it show that you have permission to access that, but result is empty with query params.

Can you check that:

1. If you request data from right extension id: "/restapi/v1.0/account/~/extension/~/message-store" for current login extension user.
2. Try with "availability=Alive" removed
3. Try with longer dateFrom param
4. If you are requesting data in production environment. From the response, you are requesting data from production.


 2
on Jun 13, 2022 at 11:19pm   •  0 likes

Thanks. got fixed



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