Get Channel Moderators

Lists all channel moderators.

HTTP MethodURLRequires Auth

GET

/api/v1/channels.moderators

Query Parameters

KeyExample ValueDescription

roomId* or roomName*

ByehQjC44FwMeiLbX or general

The channel ID or name. You must enter at least one of these parameters.

Example Call

curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
     -H "X-User-Id: aobEdbYhXfu5hkeqG" \
     https://localhost:3000/api/v1/channels.moderators?roomId=ByehQjC44FwMeiLbX

Example Response

{
    "moderators": [
        {
            "_id": "rocket.cat",
            "username": "rocket.cat",
            "name": Rocket.Cat
        }
    ],
    "success": true
}

Change Log

VersionDescription

0.70.0

Added

Last updated

Rocket.Chat versions receive support for six months after release.