Skip to main content
Answer

Getting permission issue in chats api

  • October 4, 2021
  • 1 reply
  • 232 views

I have made an application which fetches the chats info to build an analytics on the no of messages send and received.

The user authorizing application has super admin permissions.

Steps:

But while fetching one chat's post I get this message:

{
    "errors": [
        {
            "errorCode": "CHT-012",
            "message": "The requester must be team member."
        }
    ]
}

Why am I getting this error ? Are there any limitations in a way that could restrict super admin to access all the endpoints(including chat posts) ?

Best answer by PhongVu

Unfortunately, we don't have an API for an admin user to read team messaging for analytics directly like that. That API is for team members to read from a team he/she belongs to.

You can try with the compliance exports API and control with timeFrom/timeTo and chat Ids to fetch chat data. This API lets a "compliance export" admin user to access any team/chat/conversation.

1 reply

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • Answer
  • October 4, 2021

Unfortunately, we don't have an API for an admin user to read team messaging for analytics directly like that. That API is for team members to read from a team he/she belongs to.

You can try with the compliance exports API and control with timeFrom/timeTo and chat Ids to fetch chat data. This API lets a "compliance export" admin user to access any team/chat/conversation.