Skip to main content
The First Step
June 13, 2022
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.


Employee
June 14, 2022

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 replies

Employee
June 14, 2022

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.

alexwangThe First StepAuthor
The First Step
June 14, 2022

Thanks. got fixed