Skip to main content
Solved

What permission should I have to get Message List?


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.


Best answer by Embbnux1109171020

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.

View original
Did this thread help you find an answer to your question?

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.


  • New Participant
  • June 14, 2022

Thanks. got fixed


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings