GET {{baseUrl}}/chat/users/:userId/channels/:channelId/admins?page_size=10&next_page_token=<string>
Lists all administrators of a channel. For user-level apps, pass the Scopes: Note: For an account-level OAuth app, this API can only be used on behalf of a user who is assigned with a role that has the View or Edit permission for Chat Channels.me
value instead of the userId
parameter.chat_channel:read:admin
Rate Limit Label: Medium
Body
PARAM
Key | Datatype | Required | Description |
page_size
|
number | The number of records returned with a single API call. | |
next_page_token
|
string | The next page token paginates through a large set of results. A next page token is returned whenever the set of available results exceeds the current page size. This token's expiration period is 15 minutes. |
HEADERS
Key | Datatype | Required | Description |
Accept
|
string |
RESPONSES
status OK
{
"admins": [
{
"email": "<email>",
"first_name": "<string>",
"id": "<string>",
"member_id": "<string>",
"role": "owner",
"last_name": "<string>",
"name": "<string>"
},
{
"email": "<email>",
"first_name": "<string>",
"id": "<string>",
"member_id": "<string>",
"role": "admin",
"last_name": "<string>",
"name": "<string>"
}
],
"next_page_token": "<string>",
"page_size": "<integer>"
} |
ENDPOINTS